OSF/1 "cc -nodtk" does not support #include_next.
authorBruno Haible <bruno@clisp.org>
Fri, 27 Apr 2007 11:09:11 +0000 (11:09 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 27 Apr 2007 11:09:11 +0000 (11:09 +0000)
ChangeLog
lib/inttypes_.h
lib/math_.h
lib/stdio_.h
lib/stdlib_.h
lib/string_.h
lib/time_.h
lib/wchar_.h
lib/wctype_.h

index db350c7e77d02806f9b7ac8d996bfa1235d2f3ae..6b3e691102680e9fcbbb84a362f4e19b68d8cb39 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
+       version is < 6.
+       * lib/math_.h [__DECC]: Likewise.
+       * lib/stdio_.h [__DECC]: Likewise.
+       * lib/stdlib_.h [__DECC]: Likewise.
+       * lib/string_.h [__DECC]: Likewise.
+       * lib/time_.h [__DECC]: Likewise.
+       * lib/wchar_.h [__DECC]: Likewise.
+       * lib/wctype_.h [__DECC]: Likewise.
+
 2007-04-27  Bruno Haible  <bruno@clisp.org>
 
        * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
index d2af35e677e6216ea98186b0a1ac313966e49582..fcf95b053c41e35a57868474bd219dbfbb52ed0a 100644 (file)
@@ -21,7 +21,7 @@
    which in turn includes this file.  */
 #if ! defined INTTYPES_H || defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H
 # if @HAVE_INTTYPES_H@
-#  ifdef __DECC
+#  if defined __DECC && __DECC_VER >= 60000000
 #   include_next <inttypes.h>
 #  else
 #   include @ABSOLUTE_INTTYPES_H@
index 9e84d06aae13672e768597df1b0987157d70c77a..588642c1f3ca58b534555b2c6228b615b6ffc66d 100644 (file)
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
-#ifdef __DECC
+#if defined __DECC && __DECC_VER >= 60000000
 # include_next <math.h>
 #endif
 
 #ifndef _GL_MATH_H
 #define _GL_MATH_H
 
-#ifndef __DECC
+#if !(defined __DECC && __DECC_VER >= 60000000)
 # include @ABSOLUTE_MATH_H@
 #endif
 
index 8371df47afd178e46387b2834afd1613cebf6221..0e35ffd0371edb36f6d4e3fdb522c14e108808d9 100644 (file)
 #else
 /* Normal invocation convention.  */
 
-#ifdef __DECC
+#if defined __DECC && __DECC_VER >= 60000000
 # include_next <stdio.h>
 #endif
 
 #ifndef _GL_STDIO_H
 #define _GL_STDIO_H
 
-#ifndef __DECC
+#if !(defined __DECC && __DECC_VER >= 60000000)
 # include @ABSOLUTE_STDIO_H@
 #endif
 
index 0581509adc3a02f894efa933084ffaca68db27f8..c947c1d263796f74cec76f463b07e4109d2718de 100644 (file)
@@ -31,7 +31,7 @@
 #else
 /* Normal invocation convention.  */
 
-#ifdef __DECC
+#if defined __DECC && __DECC_VER >= 60000000
 # include_next <stdlib.h>
 #endif
 
@@ -45,7 +45,7 @@
 # pragma GCC system_header
 #endif
 
-#ifndef __DECC
+#if !(defined __DECC && __DECC_VER >= 60000000)
 # include @ABSOLUTE_STDLIB_H@
 #endif
 
index a7c0c23f4a437af3a84c08201852e5ef7d8b787a..95888635c22b87b36c178a694965e18f1077deb0 100644 (file)
@@ -16,7 +16,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
-#ifdef __DECC
+#if defined __DECC && __DECC_VER >= 60000000
 # include_next <string.h>
 #endif
 
@@ -29,7 +29,7 @@
 # pragma GCC system_header
 #endif
 
-#ifndef __DECC
+#if !(defined __DECC && __DECC_VER >= 60000000)
 # include @ABSOLUTE_STRING_H@
 #endif
 
index 28fb04ddbff7d18c9b54988903e1cdd126483b0a..49c668f10b1f94eff998cba0ffb282f97d93fe0d 100644 (file)
 #else
 /* Normal invocation convention.  */
 
-# ifdef __DECC
+# if defined __DECC && __DECC_VER >= 60000000
 #  include_next <time.h>
 # endif
 
 # if ! defined _GL_TIME_H
 #  define _GL_TIME_H
 
-#  ifndef __DECC
+#  if !(defined __DECC && __DECC_VER >= 60000000)
 #   include @ABSOLUTE_TIME_H@
 #  endif
 
index 5f87be7aa3c66b0a88c8c8fa6a9cff4402192fd9..7a93d07e611d4f089fadf6e914e6900dc33e33f3 100644 (file)
@@ -25,7 +25,7 @@
  * For now, this just ensures proper prerequisite inclusion order.
  */
 
-#ifdef __DECC
+#if defined __DECC && __DECC_VER >= 60000000
 # include <stdio.h>
 # include_next <wchar.h>
 #endif
@@ -42,7 +42,7 @@
 #include <time.h>
 
 /* Include the original <wchar.h>.  */
-#ifndef __DECC
+#if !(defined __DECC && __DECC_VER >= 60000000)
 # include @ABSOLUTE_WCHAR_H@
 #endif
 
index f9028e4d03e9b2be0195c826cb6c05e450d2a7b9..460cee2bc6c32ebad8cb9c19ca6ec3216f063ef5 100644 (file)
@@ -39,7 +39,7 @@
 #endif
 
 #if @HAVE_WCTYPE_H@
-# ifdef __DECC
+# if defined __DECC && __DECC_VER >= 60000000
 #  include_next <wctype.h>
 # endif
 #endif
@@ -50,7 +50,7 @@
 /* Include the original <wctype.h> if it exists.
    BeOS 5 has the functions but no <wctype.h>.  */
 #if @HAVE_WCTYPE_H@
-# ifndef __DECC
+# if !(defined __DECC && __DECC_VER >= 60000000)
 #  include @ABSOLUTE_WCTYPE_H@
 # endif
 #endif