Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Modules/CMakeCCompilerABI.c
5000 views
1
#ifdef __cplusplus
2
# error "A C++ compiler has been selected for C."
3
#endif
4
5
#ifdef __CLASSIC_C__
6
# define const
7
#endif
8
9
#include "CMakeCompilerABI.h"
10
11
#ifdef __CLASSIC_C__
12
int main(argc, argv)
13
int argc;
14
char* argv[];
15
#else
16
int main(int argc, char* argv[])
17
#endif
18
{
19
int require = 0;
20
require += info_sizeof_dptr[argc];
21
require += info_byte_order_big_endian[argc];
22
require += info_byte_order_little_endian[argc];
23
#if defined(ABI_ID)
24
require += info_abi[argc];
25
#endif
26
#if defined(ARCHITECTURE_ID)
27
require += info_arch[argc];
28
#endif
29
(void)argv;
30
return require;
31
}
32
33