diff options
author | Bruno Haible <bruno@clisp.org> | 2009-12-24 16:59:36 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-12-24 16:59:36 +0100 |
commit | d19dfc69437add5301e0e1dd28dbfda2c694cbbc (patch) | |
tree | b21eb21a4f7bf520172e12e28e92cc7a5329a633 /lib/inttypes.in.h | |
parent | 70302e4b86816aea51eb21da522f75831fa7b993 (diff) | |
download | gnulib-d19dfc69437add5301e0e1dd28dbfda2c694cbbc.tar.gz |
Reduce namespace pollution on glibc systems.
Diffstat (limited to 'lib/inttypes.in.h')
-rw-r--r-- | lib/inttypes.in.h | 7 |
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> |