Compilation: fix implicit-function-declaration and implicit-int warnings
[scilab.git] / scilab / m4 / fortran.m4
index 78c7a97..e2b90ac 100644 (file)
@@ -77,8 +77,9 @@ AC_MSG_CHECKING([use of the sharpsign in CPP])
 AC_COMPILE_IFELSE(
        [ 
                AC_LANG_PROGRAM(
-                       [[#define C2F(name) name##_]], 
-                       [[C2F(toto)()]]
+                       [[#define C2F(name) name##_
+extern int C2F(toto)(void);]],
+                       [[C2F(toto)();]]
                )
        ],
        [AC_MSG_RESULT(yes)