From 72cafba769b8093a8a825cee79e428b9e92dc410 Mon Sep 17 00:00:00 2001 From: Paul-Edouard Sarlin Date: Fri, 9 Feb 2024 11:29:05 +0100 Subject: [PATCH] Support glog >=0.7.0 --- _pyceres/logging.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_pyceres/logging.h b/_pyceres/logging.h index ff8def4..031bb67 100644 --- a/_pyceres/logging.h +++ b/_pyceres/logging.h @@ -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_) << " ";