+2006-06-26 Bruno Haible <bruno@clisp.org>
+
+ * stdlib_.h: Don't include <stdint.h> when using the SGI C compiler
+ in pre-C99 mode.
+ Suggested by Mark D. Baushke and Larry Jones.
+
2006-06-23 Mark D. Baushke <mdb@gnu.org>
* stdlib_.h: Treat BSD/OS like OpenBSD.
#endif
#if @HAVE_STDINT_H@
/* Other systems may have an incomplete <stdint.h>. */
-# include @FULL_PATH_STDINT_H@
+ /* On some versions of IRIX, the SGI C compiler comes with an <stdint.h>,
+ but
+ - in c99 mode, <inttypes.h> includes <stdint.h>,
+ - in c89 mode, <stdint.h> spews warnings. <inttypes.h> defines only
+ a subset of the types and macros that are defined in <stdint.h>.
+ So we rely only on <inttypes.h> (included above). It means that in
+ c89 mode, we shadow the contents of warning-spewing <stdint.h>. */
+# if !(defined(__sgi) && @HAVE_INTTYPES_H@ && !defined(_c99))
+# include @FULL_PATH_STDINT_H@
+# endif
#endif
/* 7.18.1.1. Exact-width integer types */
+2006-06-26 Bruno Haible <bruno@clisp.org>
+
+ * stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
+ SGI C compiler in pre-C99 mode.
+ Suggested by Mark D. Baushke and Larry Jones.
+
2006-06-23 Mark D. Baushke <mdb@gnu.org>
* stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
-# stdint.m4 serial 9
+# stdint.m4 serial 10
dnl Copyright (C) 2001-2002, 2004-2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#if (defined(__hpux) || defined(_AIX)) && HAVE_INTTYPES_H
# include FULL_PATH_INTTYPES_H
#endif
-#if HAVE_STDINT_H
+#if HAVE_STDINT_H && !(defined(__sgi) && HAVE_INTTYPES_H && !defined(_c99))
# include FULL_PATH_STDINT_H
#endif
'