From 0dadb4b8a5ed33660bce498f130de8f15eabd001 Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Fri, 13 Nov 2020 04:50:37 +0200 Subject: Undefine min, max macros coming from Xlibint.h --- src/xserver.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xserver.cpp b/src/xserver.cpp index be52416..da48567 100644 --- a/src/xserver.cpp +++ b/src/xserver.cpp @@ -46,6 +46,11 @@ #include #include + +// undef macros with frequently-used names which are defined in Xlibint.h +#undef min +#undef max + #include struct xorg::testing::XServer::Private { -- cgit v1.2.3