OSDN Git Service

* gcc.dg/builtins-config.h: Ensure we use -std=c99 on solaris2.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / builtins-config.h
index 6921b80..5aff801 100644 (file)
 
 #if defined(__hppa) && defined(__hpux)
 /* PA HP-UX doesn't have the entire C99 runtime.  */
+#elif defined(__sun) && __STDC_VERSION__ - 0 < 199901L
+/* Solaris up to 9 doesn't have the entire C99 runtime.
+   Solaris 10 defines _STDC_C99 if __STDC_VERSION__ is >= 199901L.
+   But, if you're including this file, you probably want to test the
+   newer behaviour, so: */
+#error forgot to set -std=c99.
 #elif defined(__sun) && ! defined (_STDC_C99)
 /* Solaris up to 9 doesn't have the entire C99 runtime.
    Solaris 10 defines _STDC_C99 if __STDC_VERSION__ is >= 199901L.  */