summaryrefslogtreecommitdiff
path: root/include/config-win.h
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-01-30 18:52:45 +0200
committerunknown <heikki@hundin.mysql.fi>2003-01-30 18:52:45 +0200
commit268e3ee9ddee07d45718ef36528d812bc7ce607a (patch)
tree187c9e7f425ff22effe95e801a3cd931bc00213e /include/config-win.h
parentbde6addd4b2bfcda9c5f4ef7f3b52234e4a0b890 (diff)
downloadmariadb-git-268e3ee9ddee07d45718ef36528d812bc7ce607a.tar.gz
config-win.h, os0proc.h, os0proc.c, srv0start.c:
Make AWE compilation depend on __WIN2000__ innobase/srv/srv0start.c: Make AWE compilation depend on __WIN2000__ innobase/os/os0proc.c: Make AWE compilation depend on __WIN2000__ innobase/include/os0proc.h: Make AWE compilation depend on __WIN2000__ include/config-win.h: Make AWE compilation depend on __WIN2000__
Diffstat (limited to 'include/config-win.h')
-rw-r--r--include/config-win.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config-win.h b/include/config-win.h
index efe226b2381..172209a210c 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -16,6 +16,12 @@
/* Defines for Win32 to make it compatible for MySQL */
+#ifdef __WIN2000__
+/* We have to do this define before including windows.h to get the AWE API
+functions */
+#define _WIN32_WINNT 0x0500
+#endif
+
#include <sys/locking.h>
#include <windows.h>
#include <math.h> /* Because of rint() */