diff options
author | MITSUNARI Shigeo <[email protected]> | 2015-02-14 06:54:24 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2015-02-14 06:54:24 +0900 |
commit | 8a005aaffe462b08442e60baa4b5232af64b76cc (patch) | |
tree | 393b86de79ba856e776383859a8b6553a4a8cd4d | |
parent | 7e240e78b8d3b6241911711437eccfa299a84799 (diff) | |
download | xbyak-8a005aaffe462b08442e60baa4b5232af64b76cc.tar.gz xbyak-8a005aaffe462b08442e60baa4b5232af64b76cc.zip |
don't use mmap on mingwverify20150301
-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_; |