浏览代码

gcc: Fix detection of function declarations.

* m4/gcc.m4 (STARPU_GCC_PLUGIN_SUPPORT): Include <gcc-plugin.h> when
  testing for declarations.
Ludovic Courtès 14 年之前
父节点
当前提交
23fbe77bd9
共有 1 个文件被更改,包括 2 次插入1 次删除
  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