Skip to content

Commit 24e1612

Browse files
WhiredPlancklotem
authored andcommitted
fix(setup): avoid glog log macros conflict with macros of Windows
... by defining GLOG_NO_ABBREVIATED_SEVERITIES macro. Ref: https://github.com/google/glog/tree/v0.6.0#id25
1 parent 5380952 commit 24e1612

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rime/setup.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
#include <rime/build_config.h>
99

1010
#ifdef RIME_ENABLE_LOGGING
11+
#ifdef _WIN32
12+
#define GLOG_NO_ABBREVIATED_SEVERITIES
13+
#endif // _WIN32
1114
#include <glog/logging.h>
1215
#endif // RIME_ENABLE_LOGGING
1316

0 commit comments

Comments
 (0)