error: unknown type name ‘size_t’

Issue #28 resolved
Anonymous created an issue

While compiling, jsmn.h has an error due to not recognize the standard size_t type.

I tried to use #include <stddef.h> in the top of the jsmn.h file and it fixed my problem.

Comments (3)

  1. William Jones

    Changing the header to <stddef.h>, which is where size_t is defined, would also make jsmn compliant with ANSI freestanding C compilers (which only define 4 or so headers- stddef.h being one of them) as well as hosted (which have a library implementation).

  2. Log in to comment