diff options
author | Andrey Hristov <andrey@php.net> | 2010-10-04 12:59:29 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2010-10-04 12:59:29 +0000 |
commit | 159ed311cc751eb6fc34ed759dbd9adfc07a85a0 (patch) | |
tree | 61b0595b690f29e452951a4d4daafedf40749212 | |
parent | cacd5ad92408c227e1bd9edee817280184671b6d (diff) | |
download | php-git-159ed311cc751eb6fc34ed759dbd9adfc07a85a0.tar.gz |
Even better patch
-rw-r--r-- | ext/mysqlnd/mysqlnd_portability.h | 12 |
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 */ |