Skip to content

Commit

Permalink
Support glog >=0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe committed Feb 9, 2024
1 parent 3c8ba14 commit 72cafba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _pyceres/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ class LogMessageFatalThrow : public google::LogMessage {
prefix_(__MakeExceptionPrefix(file, line)){};
LogMessageFatalThrow(const char* file,
int line,
#if GLOG_VERSION_MAJOR >= 0 && GLOG_VERSION_MINOR >= 7
const google::logging::internal::CheckOpString& result)
#else
const google::CheckOpString& result)
#endif
: google::LogMessage(file, line, google::GLOG_ERROR, &message_),
prefix_(__MakeExceptionPrefix(file, line)) {
stream() << "Check failed: " << (*result.str_) << " ";
Expand Down

0 comments on commit 72cafba

Please sign in to comment.