]> git.sur5r.net Git - i3/i3/blobdiff - libi3/string.c
Ensure all *.[ch] files include config.h
[i3/i3] / libi3 / string.c
index 328b41c092c07b23b241f8455c023bba3ddd945d..edd588da1492a26a0acb2dc6d2998af4392416cf 100644 (file)
@@ -9,15 +9,12 @@
  *           others want UTF-8 (Pango).
  *
  */
+#include "libi3.h"
 
 #include <stdlib.h>
 #include <string.h>
 
-#if PANGO_SUPPORT
 #include <glib.h>
-#endif
-
-#include "libi3.h"
 
 struct _i3String {
     char *utf8;
@@ -192,15 +189,11 @@ void i3string_set_markup(i3String *str, bool pango_markup) {
  * Escape pango markup characters in the given string.
  */
 i3String *i3string_escape_markup(i3String *str) {
-#if PANGO_SUPPORT
     const char *text = i3string_as_utf8(str);
     char *escaped = g_markup_escape_text(text, -1);
     i3String *result = i3string_from_utf8(escaped);
     free(escaped);
     return result;
-#else
-    return str;
-#endif
 }
 
 /*