diff options
author | ssrlive <30760636+ssrlive@users.noreply.github.com> | 2021-03-02 14:27:40 +0800 |
---|---|---|
committer | ssrlive <30760636+ssrlive@users.noreply.github.com> | 2021-03-02 14:27:40 +0800 |
commit | ba181548bca566d320899f7b78e5b753c0dba611 (patch) | |
tree | aae263b3fe2430ce5ace857bab878e1097faa8d9 /json_types.h | |
parent | 041cef434afe0d0c6da8b6ac1d1fa26087246dda (diff) | |
download | json-c-ba181548bca566d320899f7b78e5b753c0dba611.tar.gz |
To avoid target exe file export JSON functions.
Diffstat (limited to 'json_types.h')
-rw-r--r-- | json_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/json_types.h b/json_types.h index 67f4497..b7e55ad 100644 --- a/json_types.h +++ b/json_types.h @@ -18,7 +18,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 |