This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

intl patches (2)



intl/gettext.h doesn't need to include <stdio.h>.

This patch also updates a comment about autoconf. Running a program is not
needed in order to determine sizeof(something). Note that the next release of
autoconf will have an AC_CHECK_SIZEOF macro that works when cross-compiling.

This patch doesn't cause behaviour changes in glibc.


2001-03-17  Bruno Haible  <haible@clisp.cons.org>

	* intl/gettext.h: Don't include <stdio.h>.

diff -r -c3 --exclude=plural.c intl-0/gettext.h intl-99/gettext.h
*** intl/gettext.h	Mon Feb 28 11:34:05 2000
--- intl/gettext.h	Sat Mar 17 14:13:05 2001
***************
*** 1,5 ****
  /* Internal header for GNU gettext internationalization functions.
!    Copyright (C) 1995, 1997, 2000 Free Software Foundation, Inc.
  
     The GNU C Library is free software; you can redistribute it and/or
     modify it under the terms of the GNU Library General Public License as
--- 1,5 ----
  /* Internal header for GNU gettext internationalization functions.
!    Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
  
     The GNU C Library is free software; you can redistribute it and/or
     modify it under the terms of the GNU Library General Public License as
***************
*** 19,26 ****
  #ifndef _GETTEXT_H
  #define _GETTEXT_H 1
  
- #include <stdio.h>
- 
  #if HAVE_LIMITS_H || _LIBC
  # include <limits.h>
  #endif
--- 19,24 ----
***************
*** 37,45 ****
  /* The following contortions are an attempt to use the C preprocessor
     to determine an unsigned integral type that is 32 bits wide.  An
     alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but
!    doing that would require that the configure script compile and *run*
!    the resulting executable.  Locally running cross-compiled executables
!    is usually not possible.  */
  
  #if __STDC__
  # define UINT_MAX_32_BITS 4294967295U
--- 35,42 ----
  /* The following contortions are an attempt to use the C preprocessor
     to determine an unsigned integral type that is 32 bits wide.  An
     alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but
!    as of version autoconf-2.13, the AC_CHECK_SIZEOF macro doesn't work
!    when cross-compiling.  */
  
  #if __STDC__
  # define UINT_MAX_32_BITS 4294967295U


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]