2008-01-22 02:30:17 +03:00
|
|
|
#ifdef __cplusplus
|
2016-05-16 17:34:04 +03:00
|
|
|
#error "A C++ compiler has been selected for C."
|
2008-01-22 02:30:17 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __CLASSIC_C__
|
2016-05-16 17:34:04 +03:00
|
|
|
#define const
|
2008-01-22 02:30:17 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "CMakeCompilerABI.h"
|
|
|
|
|
2008-08-07 17:09:45 +04:00
|
|
|
#ifdef __CLASSIC_C__
|
2016-05-16 17:34:04 +03:00
|
|
|
int main(argc, argv) int argc;
|
|
|
|
char* argv[];
|
2008-08-07 17:09:45 +04:00
|
|
|
#else
|
2016-05-16 17:34:04 +03:00
|
|
|
int main(int argc, char* argv[])
|
2008-08-07 17:09:45 +04:00
|
|
|
#endif
|
2008-01-22 02:30:17 +03:00
|
|
|
{
|
2008-08-07 17:09:45 +04:00
|
|
|
int require = 0;
|
|
|
|
require += info_sizeof_dptr[argc];
|
2008-01-22 02:30:17 +03:00
|
|
|
#if defined(ABI_ID)
|
2008-08-07 17:09:45 +04:00
|
|
|
require += info_abi[argc];
|
2008-01-22 02:30:17 +03:00
|
|
|
#endif
|
2008-08-07 17:09:45 +04:00
|
|
|
(void)argv;
|
|
|
|
return require;
|
2008-01-22 02:30:17 +03:00
|
|
|
}
|