summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler/core/keywords
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-compiler/core/keywords')
-rw-r--r--mrbgems/mruby-compiler/core/keywords5
1 files changed, 5 insertions, 0 deletions
diff --git a/mrbgems/mruby-compiler/core/keywords b/mrbgems/mruby-compiler/core/keywords
index a60ecd10a..a5961b6b8 100644
--- a/mrbgems/mruby-compiler/core/keywords
+++ b/mrbgems/mruby-compiler/core/keywords
@@ -1,4 +1,9 @@
%{
+/* Workaround for `enable_cxx_exception` (#5199) */
+#if defined __cplusplus && __cplusplus >= 201103L
+# define register
+#endif
+
struct kwtable {const char *name; int id[2]; enum mrb_lex_state_enum state;};
%}