summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/nativepainting/qt_x11_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/xcb/nativepainting/qt_x11_p.h')
-rw-r--r--src/plugins/platforms/xcb/nativepainting/qt_x11_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/nativepainting/qt_x11_p.h b/src/plugins/platforms/xcb/nativepainting/qt_x11_p.h
index aa8dfa5af0..a13a8f0483 100644
--- a/src/plugins/platforms/xcb/nativepainting/qt_x11_p.h
+++ b/src/plugins/platforms/xcb/nativepainting/qt_x11_p.h
@@ -40,8 +40,10 @@
#ifndef QT_X11_P_H
#define QT_X11_P_H
+#define register /* C++17 deprecated register */
#include <X11/Xlib.h>
#include <X11/Xatom.h>
+#undef register
#if QT_CONFIG(xrender)
# include "qtessellator_p.h"