summaryrefslogtreecommitdiff
path: root/Zend/zend_strtod.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2004-12-20 20:37:45 +0000
committerfoobar <sniper@php.net>2004-12-20 20:37:45 +0000
commit4157e50c0097e089bdd1f2e5d428db7697037af9 (patch)
treeeb968bfc7ad3afc8f956b7d6e5330383465e5a5e /Zend/zend_strtod.c
parentbc3f6c94d4527e35138f352928a02ad423d6374e (diff)
downloadphp-git-4157e50c0097e089bdd1f2e5d428db7697037af9.tar.gz
Better fix for endian compile problems.
Diffstat (limited to 'Zend/zend_strtod.c')
-rw-r--r--Zend/zend_strtod.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c
index d0b197335d..bba9ac7edb 100644
--- a/Zend/zend_strtod.c
+++ b/Zend/zend_strtod.c
@@ -91,22 +91,15 @@
#include <zend_strtod.h>
-#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strtod.c,v 1.19 2004/02/03 16:52:11 drahn Exp $";
-#endif /* LIBC_SCCS and not lint */
-
-#if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \
- defined(__mips__) || defined(__mips) || defined(__ns32k__) || defined(__alpha__) || defined(__alpha) || \
- defined(__powerpc__) || defined(__ppc__) || defined(__m88k__) || defined(__hpux) || \
- defined(__hppa__) || defined(__x86_64__) || (defined(__arm__) && \
- defined(__VFP_FP__))
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
-#if BYTE_ORDER == BIG_ENDIAN
+#endif
+
+#ifdef WORDS_BIGENDIAN
#define IEEE_BIG_ENDIAN
#else
#define IEEE_LITTLE_ENDIAN
#endif
-#endif
#if defined(__arm__) && !defined(__VFP_FP__)
/*