diff --git a/_pyceres/logging.h b/_pyceres/logging.h index 7c564a8..26db67e 100644 --- a/_pyceres/logging.h +++ b/_pyceres/logging.h @@ -28,7 +28,10 @@ void PyBindLogStack(const char* data, T size) { std::cerr << std::endl << std::endl << std::endl; } -__attribute__((noreturn)) void PyBindLogTermination() { +#ifdef __GNUC__ +__attribute__((noreturn)) +#endif +void PyBindLogTermination() { std::chrono::milliseconds timespan(2000); // or whatever py::scoped_estream_redirect stream( std::cerr, // std::ostream&