]> granicus.if.org Git - php/commitdiff
- Use correct header files (in c99 compliant way). uint32_t is preferred.
authorfoobar <sniper@php.net>
Tue, 21 Dec 2004 01:07:24 +0000 (01:07 +0000)
committerfoobar <sniper@php.net>
Tue, 21 Dec 2004 01:07:24 +0000 (01:07 +0000)
Zend/zend_strtod.c
configure.in

index bba9ac7edb0b298a64031314749187d62c7e92ba..1d502c3c94bdee098a7a443ed3cc1617a1fbd7dd 100644 (file)
 
 #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
 
 #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"
index 0932529864a631db05cc0088337f650c177d4c20..7a0011a44c33a21d2612d824c325fc4014ef1e4d 100644 (file)
@@ -364,6 +364,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 \