Skip to content

Commit

Permalink
fix(setup): avoid glog log macros conflict with macros of Windows
Browse files Browse the repository at this point in the history
... by defining GLOG_NO_ABBREVIATED_SEVERITIES macro.

Ref: https://github.com/google/glog/tree/v0.6.0#id25
  • Loading branch information
WhiredPlanck authored and lotem committed Nov 12, 2022
1 parent 5380952 commit 24e1612
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rime/setup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include <rime/build_config.h>

#ifdef RIME_ENABLE_LOGGING
#ifdef _WIN32
#define GLOG_NO_ABBREVIATED_SEVERITIES
#endif // _WIN32
#include <glog/logging.h>
#endif // RIME_ENABLE_LOGGING

Expand Down

0 comments on commit 24e1612

Please sign in to comment.