From: foobar Date: Tue, 21 Dec 2004 01:07:46 +0000 (+0000) Subject: MFH: - Use correct header files (in c99 compliant way). uint32_t is preferred. X-Git-Tag: php-5.0.4RC1~450 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a659f7a8eb8a8c420daf3d1720a840d6be29d9de;p=php MFH: - Use correct header files (in c99 compliant way). uint32_t is preferred. --- diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c index bba9ac7edb..1d502c3c94 100644 --- a/Zend/zend_strtod.c +++ b/Zend/zend_strtod.c @@ -91,6 +91,12 @@ #include +#if defined(HAVE_INTTYPES_H) +#include +#elif defined(HAVE_STDINT_H) +#include +#endif + #ifdef HAVE_SYS_TYPES_H #include #endif @@ -116,23 +122,16 @@ #if defined(_MSC_VER) #define int32_t __int32 -#define u_int32_t unsigned __int32 +#define uint32_t unsigned __int32 #define IEEE_LITTLE_ENDIAN #endif -#if defined(__sparc__) || defined(__ppc__) || defined(__sun__) || \ - defined(__hpux) || defined(__hppa) -#ifndef __linux__ -#define u_int32_t uint32_t -#endif -#endif - #ifdef HAVE_SYS_BITYPES_H #include #endif #define Long int32_t -#define ULong u_int32_t +#define ULong uint32_t #ifdef __cplusplus #include "malloc.h" diff --git a/configure.in b/configure.in index 7dd063ec29..04f8882443 100644 --- a/configure.in +++ b/configure.in @@ -332,6 +332,8 @@ AC_HEADER_DIRENT PHP_MISSING_FCLOSE_DECL dnl QNX requires unix.h to allow functions in libunix to work properly AC_CHECK_HEADERS([ \ +inttypes.h \ +stdint.h \ dirent.h \ ApplicationServices/ApplicationServices.h \ sys/param.h \