소스 검색

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