summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_portability.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-10-04 12:59:29 +0000
committerAndrey Hristov <andrey@php.net>2010-10-04 12:59:29 +0000
commitd7b26d2987c03a7b01db9881ce53037b3fcdf9ad (patch)
tree10dc3d345958f1be8ba3f743ea59a242f4547c72 /ext/mysqlnd/mysqlnd_portability.h
parent5f06ac5caf61a9250286695ac25ca8d03e07fe03 (diff)
downloadphp-git-d7b26d2987c03a7b01db9881ce53037b3fcdf9ad.tar.gz
Even better patch
Diffstat (limited to 'ext/mysqlnd/mysqlnd_portability.h')
-rw-r--r--ext/mysqlnd/mysqlnd_portability.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/ext/mysqlnd/mysqlnd_portability.h b/ext/mysqlnd/mysqlnd_portability.h
index 7d86cc9501..b9479150ae 100644
--- a/ext/mysqlnd/mysqlnd_portability.h
+++ b/ext/mysqlnd/mysqlnd_portability.h
@@ -481,22 +481,18 @@ typedef union {
short/long to/from some place in memory V should be a (not
register) variable, M is a pointer to byte */
-#ifdef WORDS_BIGENDIAN
-
#ifndef float8get
+
+#ifdef WORDS_BIGENDIAN
#define float8get(V,M) memcpy((char*) &(V),(char*) (M), sizeof(double))
#define float8store(T,V) memcpy((char*) (T),(char*) &(V), sizeof(double))
-#endif /* float8get */
-
#else
-
-#ifndef float8get
#define float8get(V,M) memcpy((char*) &(V),(char*) (M),sizeof(double))
#define float8store(T,V) memcpy((char*) (T),(char*) &(V),sizeof(double))
-#endif /* float8get */
-
#endif /* WORDS_BIGENDIAN */
+#endif /* float8get */
+
#endif /* MYSQLND_PORTABILITY_H */