From c252143d5147e541a42bf7bb2530e12c62962576 Mon Sep 17 00:00:00 2001 From: Thomas Jansen Date: Tue, 2 Dec 2008 02:33:24 +0100 Subject: replaced mpd_malloc by G_GNUC_MALLOC We want to remove gcc.h eventually. This takes care of all the G_GNUC_MALLOC macros. --- src/utils.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index 6e2d288fc..0990185ee 100644 --- a/src/utils.h +++ b/src/utils.h @@ -19,8 +19,7 @@ #ifndef MPD_UTILS_H #define MPD_UTILS_H -#include "gcc.h" - +#include #include #include #include @@ -74,13 +73,13 @@ static inline ssize_t xwrite(int fd, const void *buf, size_t len) } } -mpd_malloc char *xstrdup(const char *s); +G_GNUC_MALLOC char *xstrdup(const char *s); -mpd_malloc void *xmalloc(size_t size); +G_GNUC_MALLOC void *xmalloc(size_t size); -mpd_malloc void *xrealloc(void *ptr, size_t size); +G_GNUC_MALLOC void *xrealloc(void *ptr, size_t size); -mpd_malloc void *xcalloc(size_t nmemb, size_t size); +G_GNUC_MALLOC void *xcalloc(size_t nmemb, size_t size); /** * free a const pointer - unfortunately free() expects a non-const -- cgit v1.2.3