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
263a7d855e
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue