diff options
author | foobar <sniper@php.net> | 2004-12-21 01:07:24 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2004-12-21 01:07:24 +0000 |
commit | 20fce0ba3ed7dff9d65c2c304c5172cee5143080 (patch) | |
tree | a59d21ff66a823d26d5a60c81631c344aaad3859 /Zend/zend_strtod.c | |
parent | 0a42a1f422874fa3c7d96fb9a02f8b869f09867a (diff) | |
download | php-git-20fce0ba3ed7dff9d65c2c304c5172cee5143080.tar.gz |
- Use correct header files (in c99 compliant way). uint32_t is preferred.
Diffstat (limited to 'Zend/zend_strtod.c')
-rw-r--r-- | Zend/zend_strtod.c | 17 |
1 files changed, 8 insertions, 9 deletions
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 <zend_strtod.h> +#if defined(HAVE_INTTYPES_H) +#include <inttypes.h> +#elif defined(HAVE_STDINT_H) +#include <stdint.h> +#endif + #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #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 <sys/bitypes.h> #endif #define Long int32_t -#define ULong u_int32_t +#define ULong uint32_t #ifdef __cplusplus #include "malloc.h" |