Browse Source

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.
Brad King 8 years ago
parent
commit
6a2d967de0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      bootstrap

+ 4 - 0
bootstrap

@@ -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[])