2 Macros to define main() in a cross-platform way.
6 int KWSYS_PLATFORM_TEST_C_MAIN()
11 int KWSYS_PLATFORM_TEST_C_MAIN_ARGS(argc, argv)
13 (void)argc; (void)argv;
17 #if defined(__CLASSIC_C__)
18 # define KWSYS_PLATFORM_TEST_C_MAIN() \
20 # define KWSYS_PLATFORM_TEST_C_MAIN_ARGS(argc, argv) \
21 main(argc,argv) int argc; char* argv[];
23 # define KWSYS_PLATFORM_TEST_C_MAIN() \
25 # define KWSYS_PLATFORM_TEST_C_MAIN_ARGS(argc, argv) \
26 main(int argc, char* argv[])
29 /*--------------------------------------------------------------------------*/
30 #ifdef TEST_KWSYS_C_HAS_PTRDIFF_T
32 int f(ptrdiff_t n
) { return n
> 0; }
33 int KWSYS_PLATFORM_TEST_C_MAIN()
42 /*--------------------------------------------------------------------------*/
43 #ifdef TEST_KWSYS_C_HAS_SSIZE_T
45 int f(ssize_t n
) { return (int)n
; }
46 int KWSYS_PLATFORM_TEST_C_MAIN()