To make jsmn part of a shared Windows-DLL, jsmn's functions have to be marked __declspec(dllexport) / __declscpec(dllimport). Functions marked as extern are - contrary to unix - not automatically exported.
Making JSMN_API user-definable (with a default fallback) makes writing wrapper such as these possible:
To make jsmn part of a shared Windows-DLL, jsmn's functions have to be marked
__declspec(dllexport)
/__declscpec(dllimport)
. Functions marked asextern
are - contrary to unix - not automatically exported.Making
JSMN_API
user-definable (with a default fallback) makes writing wrapper such as these possible:jsmn_dll_wrapper.c:
jsmn_dll_wrapper.h