summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Schwartzmeyer <andrew@schwartzmeyer.com>2017-06-23 19:39:49 (GMT)
committerAndrew Schwartzmeyer <andrew@schwartzmeyer.com>2017-06-27 17:50:20 (GMT)
commit7f95ecfdc7023ebc8074ad9c71a9e0f095e1eefa (patch)
treefc091981ec09c14749e1a9c260828dda88fb9679 /src
parente2caf9876e79c39cd40eaf60894132e98857f759 (diff)
downloadglog-7f95ecfdc7023ebc8074ad9c71a9e0f095e1eefa.zip
glog-7f95ecfdc7023ebc8074ad9c71a9e0f095e1eefa.tar.gz
glog-7f95ecfdc7023ebc8074ad9c71a9e0f095e1eefa.tar.bz2
Link to DbgHelp using pre-processor directive
This method ensure that all users of glog get automatically linked to the DbgHelp library without needing to set compiler flags.
Diffstat (limited to 'src')
-rw-r--r--src/demangle.cc1
-rw-r--r--src/symbolize.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/demangle.cc b/src/demangle.cc
index 7852043..4b33580 100644
--- a/src/demangle.cc
+++ b/src/demangle.cc
@@ -40,6 +40,7 @@
#if defined(OS_WINDOWS)
#include <DbgHelp.h>
+#pragma comment(lib, "DbgHelp")
#endif
_START_GOOGLE_NAMESPACE_
diff --git a/src/symbolize.cc b/src/symbolize.cc
index 24dcddc..953f1db 100644
--- a/src/symbolize.cc
+++ b/src/symbolize.cc
@@ -840,6 +840,7 @@ _END_GOOGLE_NAMESPACE_
#elif defined(OS_WINDOWS)
#include <DbgHelp.h>
+#pragma comment(lib, "DbgHelp")
_START_GOOGLE_NAMESPACE_