From 095e975c812c7962fa865f04444ac489f1ee8643 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 18 May 2006 10:28:12 -0400 Subject: BUG: Fix signature of main to work on both strict ANSI and non-ANSI C compilers. --- Modules/CheckIncludeFile.c.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Modules/CheckIncludeFile.c.in') diff --git a/Modules/CheckIncludeFile.c.in b/Modules/CheckIncludeFile.c.in index 40441f15ab..ddfbee8be7 100644 --- a/Modules/CheckIncludeFile.c.in +++ b/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 -- cgit v1.2.1