summaryrefslogtreecommitdiff
path: root/include/config-win.h
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2005-07-22 20:37:59 +0200
committerunknown <joerg@mysql.com>2005-07-22 20:37:59 +0200
commit5f900fb5322f123fcf63c59ca16b749a6c49bd73 (patch)
treee175c3fe8ecd1b0168fab8891876a5f53653243b /include/config-win.h
parent02f2ea3e8e06cc5cf2c62295c16ec6bb2668e205 (diff)
downloadmariadb-git-5f900fb5322f123fcf63c59ca16b749a6c49bd73.tar.gz
Add the definition of "floatget".
Necessary to compile 5.0.10 on Windows, no bug report filed. include/config-win.h: Add the definition of "floatget" (as taken from "include/my_config.h", matching the common "floatstore"). Necessary to compile 5.0.10 on Windows, no bug report filed.
Diffstat (limited to 'include/config-win.h')
-rw-r--r--include/config-win.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config-win.h b/include/config-win.h
index 6e0740497b0..4eaf97cd4f5 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -285,6 +285,7 @@ inline double ulonglong2double(ulonglong value)
*(((long *) T)+1) = *(((long*) &V)+1); }
#define float4get(V,M) { *((long *) &(V)) = *((long*) (M)); }
#define floatstore(T,V) memcpy((byte*)(T), (byte*)(&V), sizeof(float))
+#define floatget(V,M) memcpy((byte*)(&V), (byte*)(M), sizeof(float))
#define float8get(V,M) doubleget((V),(M))
#define float4store(V,M) memcpy((byte*) V,(byte*) (&M),sizeof(float))
#define float8store(V,M) doublestore((V),(M))