consumer.c 394 B

123456789101112131415161718192021
  1. // Visual Studio allows only one set of flags for C and C++.
  2. // In a target using C++ we pick the C++ flags even for C sources.
  3. #ifdef TEST_LANG_DEFINES_FOR_VISUAL_STUDIO_OR_XCODE
  4. #include "cxx_only.h"
  5. #ifndef CXX_ONLY_DEFINE
  6. #error Expected CXX_ONLY_DEFINE
  7. #endif
  8. #else
  9. #include "c_only.h"
  10. #ifndef C_ONLY_DEFINE
  11. #error Expected C_ONLY_DEFINE
  12. #endif
  13. #endif
  14. int consumer_c()
  15. {
  16. return 0;
  17. }