summaryrefslogtreecommitdiff
path: root/lib/inttypes.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-24 16:59:36 +0100
committerBruno Haible <bruno@clisp.org>2009-12-24 16:59:36 +0100
commitd19dfc69437add5301e0e1dd28dbfda2c694cbbc (patch)
treeb21eb21a4f7bf520172e12e28e92cc7a5329a633 /lib/inttypes.in.h
parent70302e4b86816aea51eb21da522f75831fa7b993 (diff)
downloadgnulib-d19dfc69437add5301e0e1dd28dbfda2c694cbbc.tar.gz
Reduce namespace pollution on glibc systems.
Diffstat (limited to 'lib/inttypes.in.h')
-rw-r--r--lib/inttypes.in.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/inttypes.in.h b/lib/inttypes.in.h
index cfb6fc7d57..2fac7e5e63 100644
--- a/lib/inttypes.in.h
+++ b/lib/inttypes.in.h
@@ -36,8 +36,11 @@
#if ! defined INTTYPES_H && ! defined _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
#define INTTYPES_H
-/* Include <stdint.h> or the gnulib replacement. */
-#include <stdint.h>
+/* Include <stdint.h> or the gnulib replacement.
+ But avoid namespace pollution on glibc systems. */
+#ifndef __GLIBC__
+# include <stdint.h>
+#endif
/* Get CHAR_BIT. */
#include <limits.h>