Skip to content

Commit

Permalink
Future-proof
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe committed Feb 9, 2024
1 parent 72cafba commit 2d70b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _pyceres/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class LogMessageFatalThrow : public google::LogMessage {
prefix_(__MakeExceptionPrefix(file, line)){};
LogMessageFatalThrow(const char* file,
int line,
#if GLOG_VERSION_MAJOR >= 0 && GLOG_VERSION_MINOR >= 7
#if GLOG_VERSION_MAJOR > 0 || GLOG_VERSION_MINOR >= 7
const google::logging::internal::CheckOpString& result)
#else
const google::CheckOpString& result)
Expand Down Expand Up @@ -215,7 +215,7 @@ void BindLogging(py::module& m) {
.value("ERROR", Logging::LogSeverity::GLOG_ERROR)
.value("FATAL", Logging::LogSeverity::GLOG_FATAL)
.export_values();
#if GLOG_VERSION_MAJOR >= 0 && GLOG_VERSION_MINOR >= 6
#if GLOG_VERSION_MAJOR > 0 || GLOG_VERSION_MINOR >= 6
if (!google::IsGoogleLoggingInitialized())
#endif
{
Expand Down

0 comments on commit 2d70b48

Please sign in to comment.