CMake/Tests/Module/WriteCompilerDetectionHeader
Stephen Kelly fb3487a997 Features: Fix C90 feature detection.
This bug caused c_function_prototypes to not be recorded at configure
time when compiling with -std=gnu99 or similar. In the case of feature
recording, that was not a problem, because the logic in
CMakeDetermineCompileFeatures.cmake currently assumes that a feature
present for an earlier standard is present for a later standard.

However, the detection strings are also used in WriteCompilerDetectionHeader,
so the feature macro has been defined to '0' when using a later language
dialect.

Fix that by not checking the existence of the __STDC_VERSION__ macro at
all when detecting C90 features.
2015-02-04 18:38:21 -05:00
..
CMakeLists.txt Features: Fix C90 feature detection. 2015-02-04 18:38:21 -05:00
c_undefined.c WCDH: Make the header -Wundef safe for the C language. 2014-11-25 14:44:21 +01:00
compile_tests.h WCDH: Make it possible to generate multiple files. 2014-11-24 21:54:41 +01:00
main.c Features: Fix C90 feature detection. 2015-02-04 18:38:21 -05:00
main.cpp WCDH: Test that no C compiler features are defined for CXX compiler. 2015-01-19 20:03:23 +01:00
main_multi.c Features: Fix C90 feature detection. 2015-02-04 18:38:21 -05:00
multi_files.cpp WCDH: Test that no C compiler features are defined for CXX compiler. 2015-01-19 20:03:23 +01:00