diff options
author | Brad King <brad.king@kitware.com> | 2017-09-17 15:06:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-17 15:10:18 (GMT) |
commit | 6a2d967de07a52f0460089999349e31741b402f8 (patch) | |
tree | 0660a1159825933b9236faeca94d33dc30a37674 /bootstrap | |
parent | 420874bfaa20772525c60b20d1ee5b6ef5ed9298 (diff) | |
download | CMake-6a2d967de07a52f0460089999349e31741b402f8.zip CMake-6a2d967de07a52f0460089999349e31741b402f8.tar.gz CMake-6a2d967de07a52f0460089999349e31741b402f8.tar.bz2 |
bootstrap: Require compiler mode aware of C99 on Solaris
On Solaris some system headers included in C with `-D_XOPEN_SOURCE=600`
require C99 support by the compiler.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -935,6 +935,10 @@ echo ' # error "The CMAKE_C_COMPILER is set to a C++ compiler" #endif +#if defined(__sun) && __STDC_VERSION__ < 199901L +#error "On Solaris we need C99." +#endif + #include <stdio.h> int main(int argc, char* argv[]) |