diff options
author | U.Nakamura <[email protected]> | 2021-12-27 17:15:09 +0900 |
---|---|---|
committer | U.Nakamura <[email protected]> | 2021-12-27 17:15:09 +0900 |
commit | 4e007d705c7879a843cba4ef9d4bea8a422de3f9 (patch) | |
tree | 2a2549341efa1bc5e20dc8fbebdd9df1ff42692c /include/ruby/win32.h | |
parent | 9790f54bff387b57579dc6f588bc29735eeae85b (diff) |
Fix some bornheads
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r-- | include/ruby/win32.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h index ac8d94f778..1d1f0ff9c1 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -813,18 +813,7 @@ extern int rb_w32_mprotect(void *, size_t, int); #define mmap(a, l, p, f, d, o) rb_w32_mmap(a, l, p, f, d, o) #define munmap(a, l) rb_w32_munmap(a, l) - -static inline int -mprotect(void *addr, size_t len, int prot) -{ - if (prot | PROT_EXEC) { - if (!FlushInstructionCache(GetCurrentProcess(), addr, len)) { - errno = rb_w32_map_errno(GetLastError()); - return -1; - } - } - return 0; -} +#define mprotect(a, l, prot) rb_w32_mprotect(a, l, prot) #if defined(__cplusplus) #if 0 |