diff --git a/src/mrb_cbor.c b/src/mrb_cbor.c index d3397f5c..9d589a40 100644 --- a/src/mrb_cbor.c +++ b/src/mrb_cbor.c @@ -3,13 +3,20 @@ #include #include #include -MRB_BEGIN_DECL -#include - -MRB_END_DECL #include #include #include +/* MRB_PRESYM_MAX: mruby moved it out of presym/id.h, which + * mruby/presym.h includes, into the table header. Tag 39 names a symbol + * by its presym number, so this file needs the count. + * + * The guard is the one mruby/presym.h and src/symbol.c both use. The + * build preprocesses every source to find the symbol literals in it, and + * it writes these headers from what it finds - so during that pass the + * header this asks for does not exist yet. */ +#ifndef MRB_PRESYM_SCANNING +#include +#endif #include #include #include