[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] inttostr.h cleanup for C89, <stdint.h>
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] inttostr.h cleanup for C89, <stdint.h> |
Date: |
Sun, 11 Apr 2004 23:47:00 -0700 |
I installed this minor cleanup for inttostr.h.
2004-04-11 Paul Eggert <address@hidden>
* inttostr.h: Include <limits.h> unconditionally, since we assume C89.
(CHAR_BIT): Remove, since we assume C89.
Include <stdint.h> if available, as per current Autoconf CVS advice.
--- inttostr.h.~1.1.~ Tue Mar 30 22:21:11 2004
+++ inttostr.h Sun Apr 11 23:40:31 2004
@@ -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,13 +25,11 @@
#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>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] inttostr.h cleanup for C89, <stdint.h>,
Paul Eggert <=