Explorar o código

gcc: Fix detection of function declarations.

* m4/gcc.m4 (STARPU_GCC_PLUGIN_SUPPORT): Include <gcc-plugin.h> when
  testing for declarations.
Ludovic Courtès %!s(int64=14) %!d(string=hai) anos
pai
achega
23fbe77bd9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      m4/gcc.m4

+ 2 - 1
m4/gcc.m4

@@ -53,7 +53,8 @@ AC_DEFUN([STARPU_GCC_PLUGIN_SUPPORT], [
     dnl   build_call_expr_loc_vec   -- likewise
     _STARPU_WITH_GCC_PLUGIN_API([
       AC_CHECK_DECLS([build_call_expr_loc_array, build_call_expr_loc_vec],
-        [], [], [#include <tree.h>])
+        [], [], [#include <gcc-plugin.h>
+	         #include <tree.h>])
     ])
   fi