]> git.sur5r.net Git - i3/i3/blobdiff - src/x.c
Add missing MAX macros, ensure that i3 can be compiled without pango
[i3/i3] / src / x.c
diff --git a/src/x.c b/src/x.c
index f44bc37a9f7dffb3d2378b8e99776f25be3dcb88..43db952dae9b77cf5dc8420988793a66c1fa1f4c 100644 (file)
--- a/src/x.c
+++ b/src/x.c
  */
 #include "all.h"
 
+#ifndef MAX
+#define MAX(x, y) ((x) > (y) ? (x) : (y))
+#endif
+
 xcb_window_t ewmh_window;
 
 /* Stores the X11 window ID of the currently focused window */