]> granicus.if.org Git - php/commitdiff
Even better patch
authorAndrey Hristov <andrey@php.net>
Mon, 4 Oct 2010 12:59:29 +0000 (12:59 +0000)
committerAndrey Hristov <andrey@php.net>
Mon, 4 Oct 2010 12:59:29 +0000 (12:59 +0000)
ext/mysqlnd/mysqlnd_portability.h

index 7d86cc95012ad45a2737c0c27d9c18b3e7916702..b9479150ae03ad9e1e1393ea1a304735720c7678 100644 (file)
@@ -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 */