Code

keyboard: implement keyboard_unread() without ungetch()
[ncmpc.git] / src / charset.h
index 1564f3fb750fcae384f56ba154535612afc1f492..b07d5fa3f0a0604e76e24b541999a14504cdf392 100644 (file)
@@ -1,5 +1,5 @@
 /* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 The Music Player Daemon Project
+ * (c) 2004-2017 The Music Player Daemon Project
  * Project homepage: http://musicpd.org
  *
  * This program is free software; you can redistribute it and/or modify
@@ -21,8 +21,7 @@
 #define CHARSET_H
 
 #include "config.h"
-
-#include <glib.h>
+#include "Compiler.h"
 
 #include <stdbool.h>
 
@@ -34,14 +33,14 @@ charset_init(void);
 /**
  * Returns the number of terminal cells occupied by this string.
  */
-G_GNUC_PURE
+gcc_pure
 unsigned
 utf8_width(const char *str);
 
 /**
  * Returns the number of terminal cells occupied by this string.
  */
-G_GNUC_PURE
+gcc_pure
 unsigned
 locale_width(const char *p);