From: Arkady Shapkin Date: Sat, 6 May 2017 00:01:26 +0000 (+0300) Subject: Fix statically linked gflags library with MSVC X-Git-Tag: accepted/tizen/5.0/unified/20181102.024438~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=652651b421ca5ac7b722a34a301fb656deca5198;p=platform%2Fupstream%2Fgflags.git Fix statically linked gflags library with MSVC Fix #211 --- 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