mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
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.
This commit is contained in:
@@ -935,6 +935,10 @@ echo '
|
|||||||
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
|
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__sun) && __STDC_VERSION__ < 199901L
|
||||||
|
#error "On Solaris we need C99."
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
|
|||||||
Reference in New Issue
Block a user