aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2015-02-14 06:54:24 +0900
committerMITSUNARI Shigeo <[email protected]>2015-02-14 06:54:24 +0900
commit8a005aaffe462b08442e60baa4b5232af64b76cc (patch)
tree393b86de79ba856e776383859a8b6553a4a8cd4d
parent7e240e78b8d3b6241911711437eccfa299a84799 (diff)
downloadxbyak-verify20150301.tar.gz
xbyak-verify20150301.zip
don't use mmap on mingwverify20150301
-rw-r--r--xbyak/xbyak.h4
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_;