diff options
author | Brad King <brad.king@kitware.com> | 2006-05-18 14:28:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-05-18 14:28:12 (GMT) |
commit | 095e975c812c7962fa865f04444ac489f1ee8643 (patch) | |
tree | 9553258dce1bc5139ee9e6d924bdb101457e7585 /Modules/CheckIncludeFile.c.in | |
parent | 7336fff1be32291caa90f9698821a4d6a88b8932 (diff) | |
download | CMake-095e975c812c7962fa865f04444ac489f1ee8643.zip CMake-095e975c812c7962fa865f04444ac489f1ee8643.tar.gz CMake-095e975c812c7962fa865f04444ac489f1ee8643.tar.bz2 |
BUG: Fix signature of main to work on both strict ANSI and non-ANSI C compilers.
Diffstat (limited to 'Modules/CheckIncludeFile.c.in')
-rw-r--r-- | Modules/CheckIncludeFile.c.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/CheckIncludeFile.c.in b/Modules/CheckIncludeFile.c.in index 40441f1..ddfbee8 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 |