Add missing MAX macros, ensure that i3 can be compiled without pango

This commit is contained in:
Kacper Kowalik (Xarthisius)
2016-03-07 19:40:02 -06:00
committed by Kacper Kowalik
parent d68387bf5d
commit 301320585e
4 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,10 @@
*/
#include "all.h"
#ifndef MAX
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#endif
/*
* Calculates sum of heights and sum of widths of all currently active outputs
*

View File

@ -341,10 +341,12 @@ char *pango_escape_markup(char *input) {
if (!font_is_pango())
return input;
#if PANGO_SUPPORT
char *escaped = g_markup_escape_text(input, -1);
FREE(input);
return escaped;
#endif
}
/*

View File

@ -12,6 +12,10 @@
*/
#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 */