aboutsummaryrefslogtreecommitdiffstats
path: root/regenc.h
diff options
context:
space:
mode:
Diffstat (limited to 'regenc.h')
-rw-r--r--regenc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/regenc.h b/regenc.h
index bd9fab3be1..55a71ab449 100644
--- a/regenc.h
+++ b/regenc.h
@@ -29,8 +29,10 @@
* SUCH DAMAGE.
*/
#ifndef REGINT_H
+#ifndef RUBY_EXTERN
#include "ruby/config.h"
#include "ruby/defines.h"
+#endif
#ifdef ONIG_ESCAPE_UCHAR_COLLISION
#undef ONIG_ESCAPE_UCHAR_COLLISION
#endif