From 3029cabe16d9d55bea2327bed94e071c61d2cfe0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 4 Jul 2006 04:48:23 +0000 Subject: [PATCH] * stdint_.h: Include after @FULL_PATH_STDINT_H@, for MacOS X 10.4.6. Don't mention . --- lib/ChangeLog | 5 +++++ lib/stdint_.h | 32 ++++++++++++++++---------------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index b6861ab053..1fcee2afcb 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,10 @@ 2006-07-03 Paul Eggert + * stdint_.h: Include after @FULL_PATH_STDINT_H@, for + MacOS X 10.4.6. Don't mention . Problems + reported by Mark D. Baushke, one in + . + Merge from coreutils. * .cppi-disable: Add stdint_.h. diff --git a/lib/stdint_.h b/lib/stdint_.h index b2a53dafa9..932329be88 100644 --- a/lib/stdint_.h +++ b/lib/stdint_.h @@ -32,15 +32,6 @@ for the "fast" types and macros, which we recommend against using in public interfaces due to compiler differences. */ -/* defines some of the stdint.h types as well, on glibc, - IRIX 6.5, and OpenBSD 3.8 (via ). */ -#if @HAVE_SYS_TYPES_H@ -# include -#endif - -/* Get LONG_MIN, LONG_MAX, ULONG_MAX. */ -#include - #if @HAVE_STDINT_H@ # if defined __sgi && ! defined __c99 /* Bypass IRIX's if in C89 mode, since it merely annoys users @@ -55,11 +46,27 @@ # include @FULL_PATH_STDINT_H@ #endif +/* defines some of the stdint.h types as well, on glibc, + IRIX 6.5, and OpenBSD 3.8 (via ). + MacOS X 10.4.6 includes (which is us), but + relies on the system definitions, so include + after @FULL_PATH_STDINT_H@. */ +#if @HAVE_SYS_TYPES_H@ +# include +#endif + +/* Get LONG_MIN, LONG_MAX, ULONG_MAX. */ +#include + #if @HAVE_INTTYPES_H@ /* In OpenBSD 3.8, includes , which defines int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. also defines intptr_t and uintptr_t. */ # include +#elif @HAVE_SYS_INTTYPES_H@ + /* Solaris 7 has the types except the *_fast*_t types, and + the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */ +# include #endif #if @HAVE_SYS_BITYPES_H@ && ! defined __BIT_TYPES_DEFINED__ @@ -69,13 +76,6 @@ # include #endif -#if @HAVE_SYS_INTTYPES_H@ && !@HAVE_INTTYPES_H@ - /* Solaris 7 has the types except the *_fast*_t types, and - the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. - But note that contains only the type definitions! */ -# include -#endif - #if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS /* Get WCHAR_MIN, WCHAR_MAX. */ -- 2.30.2