diff --git a/src/json-schema.hpp b/src/json-schema.hpp index 2817fe3..d38a308 100644 --- a/src/json-schema.hpp +++ b/src/json-schema.hpp @@ -27,10 +27,12 @@ #define NLOHMANN_JSON_SCHEMA_HPP__ #ifdef _WIN32 -# ifdef JSON_SCHEMA_VALIDATOR_EXPORTS +# if defined(JSON_SCHEMA_VALIDATOR_EXPORTS) # define JSON_SCHEMA_VALIDATOR_API __declspec(dllexport) -# else +# elif defined(JSON_SCHEMA_VALIDATOR_IMPORTS) # define JSON_SCHEMA_VALIDATOR_API __declspec(dllimport) +# else +# define JSON_SCHEMA_VALIDATOR_API # endif #else # define JSON_SCHEMA_VALIDATOR_API