summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas@radix.lt>2020-11-13 04:50:37 +0200
committerPovilas Kanapickas <povilas@radix.lt>2020-11-13 04:50:37 +0200
commit0dadb4b8a5ed33660bce498f130de8f15eabd001 (patch)
tree3e3c15a1da9a81442459ec647a5f3b289c0cc769
parentbf03dd99ed4850718c0baba95d80ff87213e8f80 (diff)
Undefine min, max macros coming from Xlibint.h
-rw-r--r--src/xserver.cpp5
1 files changed, 5 insertions, 0 deletions
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 <X11/Xlib.h>
#include <X11/Xlibint.h>
+
+// undef macros with frequently-used names which are defined in Xlibint.h
+#undef min
+#undef max
+
#include <X11/extensions/XInput2.h>
struct xorg::testing::XServer::Private {