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
1 changed files with 7 additions and 0 deletions

View File

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