diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-04-12 06:47:06 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-04-12 06:47:06 +0000 |
commit | 43e7d3aac3f2b6831bab3353e12a012a8c6b53d6 (patch) | |
tree | a4f32f3e0c8f1f51ac4cd281c80bbb0781d36691 /lib/inttostr.h | |
parent | 2ffb5e461cadef8074e9e4430873c284dfac7f73 (diff) | |
download | gnulib-43e7d3aac3f2b6831bab3353e12a012a8c6b53d6.tar.gz |
* inttostr.h: Assume C89 for <limits.h> and CHAR_BIT.
Include <stdint.h> if available.
Diffstat (limited to 'lib/inttostr.h')
-rw-r--r-- | lib/inttostr.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/inttostr.h b/lib/inttostr.h index de2b164f6b..6f2416b53f 100644 --- a/lib/inttostr.h +++ b/lib/inttostr.h @@ -1,6 +1,6 @@ /* inttostr.h -- convert integers to printable strings - Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,14 +25,12 @@ #if HAVE_INTTYPES_H # include <inttypes.h> #endif - -#if HAVE_LIMITS_H -# include <limits.h> -#endif -#ifndef CHAR_BIT -# define CHAR_BIT 8 +#if HAVE_STDINT_H +# include <stdint.h> #endif +#include <limits.h> + #if HAVE_SYS_TYPES_H # include <sys/types.h> #endif |