cmake/Modules/CMakeCCompilerABI.c

28 lines
511 B
C
Raw Normal View History

#ifdef __cplusplus
2018-08-09 18:06:22 +02:00
# error "A C++ compiler has been selected for C."
#endif
#ifdef __CLASSIC_C__
2018-08-09 18:06:22 +02:00
# define const
#endif
#include "CMakeCompilerABI.h"
#ifdef __CLASSIC_C__
2016-07-09 11:21:54 +02:00
int main(argc, argv) int argc;
char* argv[];
#else
2016-07-09 11:21:54 +02:00
int main(int argc, char* argv[])
#endif
{
int require = 0;
require += info_sizeof_dptr[argc];
2021-09-14 00:13:48 +02:00
require += info_byte_order_big_endian[argc];
require += info_byte_order_little_endian[argc];
#if defined(ABI_ID)
require += info_abi[argc];
#endif
(void)argv;
return require;
}