diff options
author | unknown <monty@donna.mysql.com> | 2001-02-08 04:43:55 +0200 |
---|---|---|
committer | unknown <monty@donna.mysql.com> | 2001-02-08 04:43:55 +0200 |
commit | 6d4d727efbd961db59abd6cadf8dfb9856974093 (patch) | |
tree | 423a732474ddc20d41d3ade8d9dfec50f09ee1b9 /include | |
parent | 2f40648f2af055decc5971004936a6843b51da3c (diff) | |
download | mariadb-git-6d4d727efbd961db59abd6cadf8dfb9856974093.tar.gz |
Check that __FLOAT_WORD_ORDER is defined
Diffstat (limited to 'include')
-rw-r--r-- | include/global.h | 2 | ||||
-rw-r--r-- | include/myisampack.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/global.h b/include/global.h index 657229497be..2ad4a1387a9 100644 --- a/include/global.h +++ b/include/global.h @@ -812,7 +812,7 @@ typedef union { #define float4get(V,M) memcpy_fixed((byte*) &V,(byte*) (M),sizeof(float)) #define float4store(V,M) memcpy_fixed((byte*) V,(byte*) (&M),sizeof(float)) -#if (__FLOAT_WORD_ORDER == __BIG_ENDIAN) +#if defined(__FLOAT_WORD_ORDER) && (__FLOAT_WORD_ORDER == __BIG_ENDIAN) #define doublestore(T,V) { *(T)= ((byte *) &V)[4];\ *((T)+1)=(char) ((byte *) &V)[5];\ *((T)+2)=(char) ((byte *) &V)[6];\ diff --git a/include/myisampack.h b/include/myisampack.h index 376737ad83e..a51cdc7e6eb 100644 --- a/include/myisampack.h +++ b/include/myisampack.h @@ -167,7 +167,7 @@ ((byte*) &def_temp)[3]=(M)[0];\ (V)=def_temp; } -#if (__FLOAT_WORD_ORDER == __BIG_ENDIAN) +#if defined(__FLOAT_WORD_ORDER) && (__FLOAT_WORD_ORDER == __BIG_ENDIAN) #define mi_float8store(T,V) { *(T)= ((byte *) &V)[3];\ *((T)+1)=(char) ((byte *) &V)[2];\ *((T)+2)=(char) ((byte *) &V)[1];\ |