CMakeCCompilerABI.c 414 B

12345678910111213141516171819202122232425
  1. #ifdef __cplusplus
  2. # error "A C++ compiler has been selected for C."
  3. #endif
  4. #ifdef __CLASSIC_C__
  5. # define const
  6. #endif
  7. #include "CMakeCompilerABI.h"
  8. #ifdef __CLASSIC_C__
  9. int main(argc, argv) int argc;
  10. char* argv[];
  11. #else
  12. int main(int argc, char* argv[])
  13. #endif
  14. {
  15. int require = 0;
  16. require += info_sizeof_dptr[argc];
  17. #if defined(ABI_ID)
  18. require += info_abi[argc];
  19. #endif
  20. (void)argv;
  21. return require;
  22. }