diff options
author | Povilas Kanapickas <povilas@radix.lt> | 2020-11-13 04:50:37 +0200 |
---|---|---|
committer | Povilas Kanapickas <povilas@radix.lt> | 2020-11-13 04:50:37 +0200 |
commit | 0dadb4b8a5ed33660bce498f130de8f15eabd001 (patch) | |
tree | 3e3c15a1da9a81442459ec647a5f3b289c0cc769 | |
parent | bf03dd99ed4850718c0baba95d80ff87213e8f80 (diff) |
Undefine min, max macros coming from Xlibint.h
-rw-r--r-- | src/xserver.cpp | 5 |
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 { |