diff options
| author | KOBAYASHI Shuji <[email protected]> | 2020-12-02 19:15:42 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2020-12-02 19:15:42 +0900 |
| commit | 00df8096091fea561f49297d47397571a39ccf88 (patch) | |
| tree | fdf8c573143bd33fdd09d5ebabc2753905b81d2b /mrbgems/mruby-compiler/core/keywords | |
| parent | 661081a072e9176f2640664453f734e8aa993766 (diff) | |
| download | mruby-00df8096091fea561f49297d47397571a39ccf88.tar.gz mruby-00df8096091fea561f49297d47397571a39ccf88.zip | |
Fix build for C++ version >= C++11 when `enable_cxx_exception`; close #5199
Diffstat (limited to 'mrbgems/mruby-compiler/core/keywords')
| -rw-r--r-- | mrbgems/mruby-compiler/core/keywords | 5 |
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;}; %} |
