changeset 8647:8493230fff95

Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
author Bruno Haible <bruno@clisp.org>
date Fri, 06 Apr 2007 12:53:52 +0000
parents 27dec01819aa
children 359d135f748c
files ChangeLog lib/inttypes_.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
 	* lib/time_.h [__DECC]: Likewise.
 	* lib/wchar_.h [__DECC]: Likewise.
 	* lib/wctype_.h [__DECC]: Likewise.
+	* lib/inttypes_.h [__DECC]: Likewise.
 	Reported by Albert Chin <china@thewrittenword.com> in
 	<http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
 
--- a/lib/inttypes_.h
+++ b/lib/inttypes_.h
@@ -21,7 +21,11 @@
    which in turn includes this file.  */
 #if ! defined INTTYPES_H || defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H
 # if @HAVE_INTTYPES_H@
-#  include @ABSOLUTE_INTTYPES_H@
+#  ifdef __DECC
+#   include_next <inttypes.h>
+#  else
+#   include @ABSOLUTE_INTTYPES_H@
+#  endif
 # endif
 #endif