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:
@@ -1,6 +1,13 @@
|
||||
#include <${CHECK_INCLUDE_FILE_VAR}>
|
||||
|
||||
#ifdef __CLASSIC_C__
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user