summaryrefslogtreecommitdiffstats
path: root/Modules/CheckIncludeFile.c.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-05-18 14:28:12 (GMT)
committerBrad King <brad.king@kitware.com>2006-05-18 14:28:12 (GMT)
commit095e975c812c7962fa865f04444ac489f1ee8643 (patch)
tree9553258dce1bc5139ee9e6d924bdb101457e7585 /Modules/CheckIncludeFile.c.in
parent7336fff1be32291caa90f9698821a4d6a88b8932 (diff)
downloadCMake-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.in7
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