diff options
author | MITSUNARI Shigeo <[email protected]> | 2018-07-26 09:36:12 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2018-07-26 09:36:12 +0900 |
commit | 85767e9520f64e501fc53636153d0a112450a332 (patch) | |
tree | 17859cdbce611185aeddbd928ff4f05770374377 /xbyak/xbyak.h | |
parent | 59573e6e7a6e0e5a45fd1e5fc46187766b292b35 (diff) | |
download | xbyak-85767e9520f64e501fc53636153d0a112450a332.tar.gz xbyak-85767e9520f64e501fc53636153d0a112450a332.zip |
support mingw64v5.661
Diffstat (limited to 'xbyak/xbyak.h')
-rw-r--r-- | xbyak/xbyak.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h index c33f085..aa4ce87 100644 --- a/xbyak/xbyak.h +++ b/xbyak/xbyak.h @@ -105,7 +105,7 @@ namespace Xbyak { enum { DEFAULT_MAX_CODE_SIZE = 4096, - VERSION = 0x5660 /* 0xABCD = A.BC(D) */ + VERSION = 0x5661 /* 0xABCD = A.BC(D) */ }; #ifndef MIE_INTEGER_TYPE_DEFINED @@ -970,7 +970,7 @@ public: */ static inline bool protect(const void *addr, size_t size, int protectMode) { -#if defined(_MSC_VER) +#if defined(_WIN32) const DWORD c_rw = PAGE_READWRITE; const DWORD c_rwe = PAGE_EXECUTE_READWRITE; const DWORD c_re = PAGE_EXECUTE_READ; @@ -988,7 +988,7 @@ public: default: return false; } -#if defined(_MSC_VER) +#if defined(_WIN32) DWORD oldProtect; return VirtualProtect(const_cast<void*>(addr), size, mode, &oldProtect) != 0; #elif defined(__GNUC__) |