CMakeCCompilerABI.c 572 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#ifdef __cplusplus
# error "A C++ compiler has been selected for C."
#endif

#ifdef __CLASSIC_C__
# define const
#endif

/*--------------------------------------------------------------------------*/

#include "CMakeCompilerABI.h"

/*--------------------------------------------------------------------------*/

15 16 17 18 19
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
20
{
21 22
  int require = 0;
  require += info_sizeof_dptr[argc];
23
#if defined(ABI_ID)
24
  require += info_abi[argc];
25
#endif
26 27
  (void)argv;
  return require;
28
}