From 116afb95f349c1fdef8531ee838d45719bafd6fb Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 27 Jun 2007 15:22:55 +0000 Subject: [PATCH] Make virtual Alloc win32 specific instead of visual C specific Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2896 --- src/cpu/core_dyn_x86.cpp | 2 +- src/cpu/core_dyn_x86/cache.h | 2 +- src/cpu/core_dynrec.cpp | 2 +- src/cpu/core_dynrec/cache.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpu/core_dyn_x86.cpp b/src/cpu/core_dyn_x86.cpp index 27aef301..8e78b8ad 100644 --- a/src/cpu/core_dyn_x86.cpp +++ b/src/cpu/core_dyn_x86.cpp @@ -27,7 +27,7 @@ #include #include -#if defined (_MSC_VER) +#if defined (WIN32) #include #include #endif diff --git a/src/cpu/core_dyn_x86/cache.h b/src/cpu/core_dyn_x86/cache.h index 8f51e880..968f26c6 100644 --- a/src/cpu/core_dyn_x86/cache.h +++ b/src/cpu/core_dyn_x86/cache.h @@ -457,7 +457,7 @@ static void cache_init(bool enable) { } } if (cache_code_start_ptr==NULL) { -#if defined (_MSC_VER) +#if defined (WIN32) cache_code_start_ptr=(Bit8u*)VirtualAlloc(0,CACHE_TOTAL+CACHE_MAXSIZE+PAGESIZE_TEMP-1+PAGESIZE_TEMP, MEM_COMMIT,PAGE_EXECUTE_READWRITE); if (!cache_code_start_ptr) diff --git a/src/cpu/core_dynrec.cpp b/src/cpu/core_dynrec.cpp index 33d783eb..55a631ea 100644 --- a/src/cpu/core_dynrec.cpp +++ b/src/cpu/core_dynrec.cpp @@ -27,7 +27,7 @@ #include #include -#if defined (_MSC_VER) +#if defined (WIN32) #include #include #endif diff --git a/src/cpu/core_dynrec/cache.h b/src/cpu/core_dynrec/cache.h index 5a7d40a2..c8f17858 100644 --- a/src/cpu/core_dynrec/cache.h +++ b/src/cpu/core_dynrec/cache.h @@ -562,7 +562,7 @@ static void cache_init(bool enable) { } if (cache_code_start_ptr==NULL) { // allocate the code cache memory -#if defined (_MSC_VER) +#if defined (WIN32) cache_code_start_ptr=(Bit8u*)VirtualAlloc(0,CACHE_TOTAL+CACHE_MAXSIZE+PAGESIZE_TEMP-1+PAGESIZE_TEMP, MEM_COMMIT,PAGE_EXECUTE_READWRITE); if (!cache_code_start_ptr)