diff options
author | unknown <heikki@hundin.mysql.fi> | 2003-01-30 18:52:45 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2003-01-30 18:52:45 +0200 |
commit | 268e3ee9ddee07d45718ef36528d812bc7ce607a (patch) | |
tree | 187c9e7f425ff22effe95e801a3cd931bc00213e /innobase/os | |
parent | bde6addd4b2bfcda9c5f4ef7f3b52234e4a0b890 (diff) | |
download | mariadb-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 'innobase/os')
-rw-r--r-- | innobase/os/os0proc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/innobase/os/os0proc.c b/innobase/os/os0proc.c index 1497ee46b88..614cea63200 100644 --- a/innobase/os/os0proc.c +++ b/innobase/os/os0proc.c @@ -20,13 +20,13 @@ Created 9/30/1995 Heikki Tuuri How to get AWE to compile on Windows? ------------------------------------- -the Visual C++ has to be relatively recent and _WIN32_WINNT has to be -defined to a value >= 0x0500 when windows.h is included. An easy way -to accomplish that is to put +In the project settings of the innobase project the Visual C++ source, +__WIN2000__ has to be defined. -#define _WIN32_WINNT 0x0500 +The Visual C++ has to be relatively recent and _WIN32_WINNT has to be +defined to a value >= 0x0500 when windows.h is included. -to the start of file \mysql\include\config-win.h +#define _WIN32_WINNT 0x0500 Where does AWE work? ------------------- @@ -62,7 +62,7 @@ to a mapped 'physical page' for each 4 kB page in the AWE window */ byte** os_awe_simulate_map; #endif -#ifdef __NT__ +#ifdef __WIN2000__ os_awe_t* os_awe_page_info; ulint os_awe_n_pages; byte* os_awe_window; @@ -84,7 +84,7 @@ os_awe_enable_lock_pages_in_mem(void) return(TRUE); -#elif defined(__NT__) +#elif defined(__WIN2000__) struct { DWORD Count; LUID_AND_ATTRIBUTES Privilege[1]; @@ -187,7 +187,7 @@ os_awe_allocate_physical_mem( return(TRUE); -#elif defined(__NT__) +#elif defined(__WIN2000__) BOOL bResult; os_awe_t NumberOfPages; /* Question: why does Windows use the name ULONG_PTR for @@ -318,7 +318,7 @@ os_awe_allocate_virtual_mem_window( return(os_awe_simulate_window); -#elif defined(__NT__) +#elif defined(__WIN2000__) byte* ptr; if (size > 0x7FFFFFFFFF) { @@ -424,7 +424,7 @@ os_awe_map_physical_mem_to_window( return(TRUE); -#elif defined(__NT__) +#elif defined(__WIN2000__) BOOL bResult; os_awe_t n_pages; |