summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <knielsen@mysql.com>2005-11-28 15:07:20 +0100
committerunknown <knielsen@mysql.com>2005-11-28 15:07:20 +0100
commitbaff781ba45b7aac77a3efdcfc3bb8d5ef9e9135 (patch)
tree8a745202fe03b2db5622c67cabe8b0c26e9b9965 /include
parentdc3e736bff2975e9c170acfdf39b717771cf1bd7 (diff)
downloadmariadb-git-baff781ba45b7aac77a3efdcfc3bb8d5ef9e9135.tar.gz
Minor Win32 compile fixes for 4.1.16 release.
sql/log_event.cc: Add missing cast needed for Win32 compilation. include/config-win.h: Win32 compile fix: quote multi-line macros with do { ... } while(0) to follow earlier changes in my_global.h.
Diffstat (limited to 'include')
-rw-r--r--include/config-win.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/config-win.h b/include/config-win.h
index 9663947683e..e1972051e67 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -278,10 +278,10 @@ inline double ulonglong2double(ulonglong value)
*((T)+4)=(uchar) (((A) >> 32)); }
#define int8store(T,A) *((ulonglong *) (T))= (ulonglong) (A)
-#define doubleget(V,M) { *((long *) &V) = *((long*) M); \
- *(((long *) &V)+1) = *(((long*) M)+1); }
-#define doublestore(T,V) { *((long *) T) = *((long*) &V); \
- *(((long *) T)+1) = *(((long*) &V)+1); }
+#define doubleget(V,M) do { *((long *) &V) = *((long*) M); \
+ *(((long *) &V)+1) = *(((long*) M)+1); } while(0)
+#define doublestore(T,V) do { *((long *) T) = *((long*) &V); \
+ *(((long *) T)+1) = *(((long*) &V)+1); } while(0)
#define float4get(V,M) { *((long *) &(V)) = *((long*) (M)); }
#define floatget(V,M) memcpy((byte*) &V,(byte*) (M),sizeof(float))
#define floatstore(T,V) memcpy((byte*)(T), (byte*)(&V), sizeof(float))