22 lines
414 B
C
Raw Normal View History

2015-08-17 11:37:30 +02:00
2018-04-23 21:13:27 +02:00
// Visual Studio allows only one set of flags for C and C++.
// In a target using C++ we pick the C++ flags even for C sources.
#ifdef TEST_LANG_DEFINES_FOR_VISUAL_STUDIO_OR_XCODE
2018-08-09 18:06:22 +02:00
# include "cxx_only.h"
2018-04-23 21:13:27 +02:00
2018-08-09 18:06:22 +02:00
# ifndef CXX_ONLY_DEFINE
# error Expected CXX_ONLY_DEFINE
# endif
2018-04-23 21:13:27 +02:00
#else
2018-08-09 18:06:22 +02:00
# include "c_only.h"
2015-08-17 11:37:30 +02:00
2018-08-09 18:06:22 +02:00
# ifndef C_ONLY_DEFINE
# error Expected C_ONLY_DEFINE
# endif
2015-08-17 11:37:30 +02:00
#endif
2016-07-09 11:21:54 +02:00
int consumer_c()
{
return 0;
}