CMakeCCompilerABI.c 560 B

12345678910111213141516171819202122232425262728
  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. /*--------------------------------------------------------------------------*/
  8. #include "CMakeCompilerABI.h"
  9. /*--------------------------------------------------------------------------*/
  10. /* Make sure the information strings are referenced. */
  11. #define REQUIRE(x) (&x[0] != &require)
  12. int main()
  13. {
  14. const char require = 0;
  15. return
  16. (
  17. REQUIRE(info_sizeof_dptr)
  18. #if defined(ABI_ID)
  19. && REQUIRE(info_abi)
  20. #endif
  21. );
  22. }