# HG changeset patch # User Paul Eggert # Date 1081752426 0 # Node ID d3dbed4f82b1a9ca4c11a30a4a6ce3966d871cdb # Parent a74897f80b60505772513f33cf6330823a7ca38e * inttostr.h: Assume C89 for and CHAR_BIT. Include if available. diff --git a/lib/ChangeLog b/lib/ChangeLog --- 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 --- 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,13 +25,11 @@ #if HAVE_INTTYPES_H # include #endif - -#if HAVE_LIMITS_H -# include +#if HAVE_STDINT_H +# include #endif -#ifndef CHAR_BIT -# define CHAR_BIT 8 -#endif + +#include #if HAVE_SYS_TYPES_H # include