summaryrefslogtreecommitdiff
path: root/regint.h
diff options
context:
space:
mode:
Diffstat (limited to 'regint.h')
-rw-r--r--regint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/regint.h b/regint.h
index 63d9a12a2d..e6c499ac7e 100644
--- a/regint.h
+++ b/regint.h
@@ -85,6 +85,10 @@
/* escape other system UChar definition */
#ifndef RUBY_DEFINES_H
#include "ruby/ruby.h"
+#undef xmalloc
+#undef xrealloc
+#undef xcalloc
+#undef xfree
#endif
#ifdef ONIG_ESCAPE_UCHAR_COLLISION
#undef ONIG_ESCAPE_UCHAR_COLLISION