CMakeCXXCompilerABI.cpp 517 B

123456789101112131415161718192021222324
  1. #ifndef __cplusplus
  2. # error "A C compiler has been selected for C++."
  3. #endif
  4. /*--------------------------------------------------------------------------*/
  5. #include "CMakeCompilerABI.h"
  6. /*--------------------------------------------------------------------------*/
  7. /* Make sure the information strings are referenced. */
  8. #define REQUIRE(x) (&x[0] != &require)
  9. int main()
  10. {
  11. const char require = 0;
  12. return
  13. (
  14. REQUIRE(info_sizeof_dptr)
  15. #if defined(ABI_ID)
  16. && REQUIRE(info_abi)
  17. #endif
  18. );
  19. }