1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

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

This commit is contained in:
Brad King
2006-05-18 10:28:12 -04:00
parent 7336fff1be
commit 095e975c81

View File

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