From 8a13de4cde3e670640bd3a1d0e4378a9e8e29c90 Mon Sep 17 00:00:00 2001 From: tang zhixiong Date: Fri, 4 Oct 2024 22:31:08 +0800 Subject: [PATCH] fix --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 41eb7e9..a00d615 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,6 +28,11 @@ #include "h3api.h" #include "cubao/polyline_ruler.hpp" #include "spdlog/spdlog.h" +// fix exposed macro 'GetObject' from wingdi.h (included by spdlog.h) under +// windows, see https://github.com/Tencent/rapidjson/issues/1448 +#ifdef GetObject +#undef GetObject +#endif #include #include