]> granicus.if.org Git - php/commitdiff
don't define twice the macro on some platforms
authorAndrey Hristov <andrey@php.net>
Mon, 4 Oct 2010 12:41:12 +0000 (12:41 +0000)
committerAndrey Hristov <andrey@php.net>
Mon, 4 Oct 2010 12:41:12 +0000 (12:41 +0000)
ext/mysqlnd/mysqlnd_portability.h

index 40f614ab045fd3bf68ac81c67376a647087d061a..7d86cc95012ad45a2737c0c27d9c18b3e7916702 100644 (file)
@@ -483,8 +483,10 @@ typedef union {
 
 #ifdef WORDS_BIGENDIAN
 
+#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 */
 
 #else