1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

workaround for #75

This commit is contained in:
ser1zw 2016-04-08 00:08:02 +09:00
parent 2c6f30ab25
commit 263a7d855e

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