mirror of
https://github.com/json-c/json-c.git
synced 2026-03-31 02:49:06 +08:00
To avoid target exe file export JSON functions.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user