WCDH: Make the header -Wundef safe for the C language.

The __STDC_VERSION__ macro may be defined or not depending on the
implementation dialect of C.  Test that it is defined before testing
its value.

The CXX tests do not need such a change because they define __cplusplus
in all dialects.
This commit is contained in:
Stephen Kelly
2014-11-24 21:47:48 +01:00
parent 598a316154
commit d0af0faefb
4 changed files with 18 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
#include "test_compiler_detection.h"
int main()
{
return 0;
}