From: Paul Eggert Date: Mon, 12 Apr 2004 06:47:06 +0000 (+0000) Subject: * inttostr.h: Assume C89 for and CHAR_BIT. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43e7d3aac3f2b6831bab3353e12a012a8c6b53d6;p=pspp * inttostr.h: Assume C89 for and CHAR_BIT. Include if available. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 1cafcdf436..9b01601f89 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,6 +1,12 @@ +2004-04-11 Paul Eggert + + * inttostr.h: Include unconditionally, since we assume C89. + (CHAR_BIT): Remove, since we assume C89. + Include if available, as per current Autoconf CVS advice. + 2004-03-30 Paul Eggert - * lib/cloexec.h, lib/cloexec.c (set_cloexec_flag): Return int + * cloexec.h, cloexec.c (set_cloexec_flag): Return int not bool, to be more consistent with Unix conventions. Suggested by Bruno Haible. 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 #endif - -#if HAVE_LIMITS_H -# include -#endif -#ifndef CHAR_BIT -# define CHAR_BIT 8 +#if HAVE_STDINT_H +# include #endif +#include + #if HAVE_SYS_TYPES_H # include #endif