summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/encoding.c b/encoding.c
index 396a34c291..d83fc2d002 100644
--- a/encoding.c
+++ b/encoding.c
@@ -24,6 +24,10 @@
#endif
#include "ruby/util.h"
+#undef rb_ascii8bit_encindex
+#undef rb_utf8_encindex
+#undef rb_usascii_encindex
+
#if defined __GNUC__ && __GNUC__ >= 4
#pragma GCC visibility push(default)
int rb_enc_register(const char *name, rb_encoding *encoding);