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:
parent
2c6f30ab25
commit
dbf44013ce
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
#endif
|
#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 RUBY_WIN32_H
|
||||||
#ifdef write
|
#ifdef write
|
||||||
#undef write
|
#undef write
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue