Browse Source

BUG: Fix signature of main to work on both strict ANSI and non-ANSI C compilers.

Brad King 19 years ago
parent
commit
095e975c81
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Modules/CheckIncludeFile.c.in

+ 7 - 0
Modules/CheckIncludeFile.c.in

@@ -1,6 +1,13 @@
 #include <${CHECK_INCLUDE_FILE_VAR}>
 
+#ifdef __CLASSIC_C__
 int main()
 {
   return 0;
 }
+#else
+int main(void)
+{
+  return 0;
+}
+#endif