From 7e8737e85d0bfdac1abc2a96cfeabf7460d39843 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Tue, 27 Feb 2018 21:53:36 -0700 Subject: [PATCH] Fix preprocessor branches for dllimport --- src/json-schema.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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