projects
/
platform
/
upstream
/
gflags.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9314597
)
Fix statically linked gflags library with MSVC
author
Arkady Shapkin
<arkady.shapkin@gmail.com>
Sat, 6 May 2017 00:01:26 +0000
(
03:01
+0300)
committer
Andreas Schuh
<andreas.schuh.84@gmail.com>
Sat, 6 May 2017 00:47:54 +0000
(
01:47
+0100)
Fix #211
src/gflags.h.in
patch
|
blob
|
history
diff --git
a/src/gflags.h.in
b/src/gflags.h.in
index
43b3f7a
..
82e640f
100644
(file)
--- 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
-# if
def _MSC_VER
+# if
GFLAGS_IS_A_DLL && defined(_MSC_VER)
# define GFLAGS_DLL_DEFINE_FLAG __declspec(dllexport)
# else
# define GFLAGS_DLL_DEFINE_FLAG