diff options
-rw-r--r-- | xbyak/xbyak.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h index 19a8956..7958863 100644 --- a/xbyak/xbyak.h +++ b/xbyak/xbyak.h @@ -25,7 +25,7 @@ #endif //#define XBYAK_USE_MMAP_ALLOCATOR -#ifndef __GNUC__ +#if !defined(__GNUC__) || defined(__MINGW32__) #undef XBYAK_USE_MMAP_ALLOCATOR #endif @@ -283,7 +283,7 @@ struct Allocator { virtual bool useProtect() const { return true; } }; -#ifdef __GNUC__ +#ifdef XBYAK_USE_MMAP_ALLOCATOR class MmapAllocator : Allocator { typedef XBYAK_STD_UNORDERED_MAP<uintptr_t, size_t> SizeList; SizeList sizeList_; |