From 652651b421ca5ac7b722a34a301fb656deca5198 Mon Sep 17 00:00:00 2001 From: Arkady Shapkin Date: Sat, 6 May 2017 03:01:26 +0300 Subject: Fix statically linked gflags library with MSVC Fix #211 --- src/gflags.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gflags.h.in b/src/gflags.h.in index 43b3f7a..82e640f 100644 --- a/src/gflags.h.in +++ b/src/gflags.h.in @@ -86,7 +86,7 @@ // We always want to export variables defined in user code #ifndef GFLAGS_DLL_DEFINE_FLAG -# ifdef _MSC_VER +# if GFLAGS_IS_A_DLL && defined(_MSC_VER) # define GFLAGS_DLL_DEFINE_FLAG __declspec(dllexport) # else # define GFLAGS_DLL_DEFINE_FLAG -- cgit v1.2.3