To avoid target exe file export JSON functions.

This commit is contained in:
ssrlive
2021-03-02 14:27:40 +08:00
parent 041cef434a
commit ba181548bc
5 changed files with 8 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ extern "C" {
#endif
#ifndef JSON_EXPORT
#if defined(_MSC_VER)
#if defined(_MSC_VER) && defined(JSON_C_DLL)
#define JSON_EXPORT __declspec(dllexport)
#else
#define JSON_EXPORT extern