From 8aabf93cc1aa419c84dfeb504a352947d0037f97 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Tue, 8 Mar 2016 17:34:22 +0530 Subject: [PATCH] MinGW support while building as DLL __MINGW32__ is appropriate to support for MinGW --- include/json/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/json/config.h b/include/json/config.h index 07dae64..8254727 100644 --- a/include/json/config.h +++ b/include/json/config.h @@ -39,12 +39,12 @@ #ifdef JSON_IN_CPPTL #define JSON_API CPPTL_API #elif defined(JSON_DLL_BUILD) -#if defined(_MSC_VER) || defined(__GNUC__) +#if defined(_MSC_VER) || defined(__MINGW32__) #define JSON_API __declspec(dllexport) #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING #endif // if defined(_MSC_VER) #elif defined(JSON_DLL) -#if defined(_MSC_VER) || defined(__GNUC__) +#if defined(_MSC_VER) || defined(__MINGW32__) #define JSON_API __declspec(dllimport) #define JSONCPP_DISABLE_DLL_INTERFACE_WARNING #endif // if defined(_MSC_VER)