From 8e331cfc65b6817a147dfaac4d9c4d01414782ac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Aug 2012 18:15:49 +0200 Subject: gcc.h: re-add gcc_const and gcc_pure Remove GLib dependency from some headers. --- src/resolver.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/resolver.h') diff --git a/src/resolver.h b/src/resolver.h index e5ad06754..666b6d5b2 100644 --- a/src/resolver.h +++ b/src/resolver.h @@ -20,12 +20,14 @@ #ifndef MPD_RESOLVER_H #define MPD_RESOLVER_H +#include "gcc.h" + #include struct sockaddr; struct addrinfo; -G_GNUC_CONST +gcc_const static inline GQuark resolver_quark(void) { @@ -42,7 +44,7 @@ resolver_quark(void) * @param error location to store the error occurring, or NULL to * ignore errors */ -G_GNUC_MALLOC +gcc_malloc char * sockaddr_to_string(const struct sockaddr *sa, size_t length, GError **error); -- cgit v1.2.3