workaround for #75

This commit is contained in:
ser1zw 2016-04-08 00:08:02 +09:00
parent 2c6f30ab25
commit 263a7d855e
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,12 @@
#include <version.h>
#endif
// Workaround for https://bugs.ruby-lang.org/issues/11962
#undef RB_OBJ_WB_UNPROTECT_FOR
#define RB_OBJ_WB_UNPROTECT_FOR(type, obj) \
(RGENGC_WB_PROTECTED_##type ? \
OBJ_WB_UNPROTECT((VALUE)(obj)) : ((VALUE)(obj)))
#ifdef RUBY_WIN32_H
#ifdef write
#undef write