From 6d4d727efbd961db59abd6cadf8dfb9856974093 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 8 Feb 2001 04:43:55 +0200 Subject: Check that __FLOAT_WORD_ORDER is defined --- include/global.h | 2 +- include/myisampack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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];\ -- cgit v1.2.1