summaryrefslogtreecommitdiff
path: root/include/config-win.h
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-06-04 16:05:27 +0300
committerunknown <monty@narttu.mysql.fi>2003-06-04 16:05:27 +0300
commita91d2fcbd9d927deb8808c10a32f1baa192a4e26 (patch)
treec934efa152de5caa783757ffbd3353ed664d55d2 /include/config-win.h
parent3f7dfc4df3a9bdfc01e5b84c3297fff61b791f9b (diff)
downloadmariadb-git-a91d2fcbd9d927deb8808c10a32f1baa192a4e26.tar.gz
Added [mysqld-base-version] as a default group for the mysqld server
Portability fix for Windows 64 include/config-win.h: Portability fix for Windows 64 include/my_global.h: Portability fix for Windows 64 include/mysql_version.h.in: Added [mysqld-base-version] as a default group for the mysqld server innobase/include/univ.i: Portability fix for Windows 64 sql/mysqld.cc: Added [mysqld-base-version] as a default group for the mysqld server
Diffstat (limited to 'include/config-win.h')
-rw-r--r--include/config-win.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/config-win.h b/include/config-win.h
index 9931d2c4b95..096c00e4574 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -130,6 +130,11 @@ typedef uint rf_SetTimer;
#define SIZEOF_LONG 4
#define SIZEOF_LONG_LONG 8
#define SIZEOF_OFF_T 8
+#ifdef _WIN64
+#define SIZEOF_CHARP 8
+#else
+#define SIZEOF_CHARP 4
+#endif
#define HAVE_BROKEN_NETINET_INCLUDES
#ifdef __NT__
#define HAVE_NAMED_PIPE /* We can only create pipes on NT */
@@ -196,6 +201,7 @@ inline double ulonglong2double(ulonglong value)
/* Optimized store functions for Intel x86 */
+#ifndef _WIN64
#define sint2korr(A) (*((int16 *) (A)))
#define sint3korr(A) ((int32) ((((uchar) (A)[2]) & 128) ? \
(((uint32) 255L << 24) | \
@@ -236,7 +242,7 @@ inline double ulonglong2double(ulonglong value)
#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))
-
+#endif /* _WIN64 */
#define HAVE_PERROR
#define HAVE_VFPRINT