From e86fd65c81be319c8f4848d42053084ceab9afc8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 30 Jul 2006 08:47:50 +0000 Subject: commandError() cleanups, fixup gcc checks stripped binary size reduced by 9k on my machine from making commandError a function. We'll print out error messages slightly slower before, but the smaller binary is more than worth it. git-svn-id: https://svn.musicpd.org/mpd/trunk@4488 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/gcc.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gcc.h') diff --git a/src/gcc.h b/src/gcc.h index 62c78e733..4b4fe4cd4 100644 --- a/src/gcc.h +++ b/src/gcc.h @@ -8,7 +8,7 @@ */ /* disabled (0) until I fix all the warnings :) */ -#if (0 && __GNUC__ >= 3) +#if __GNUC__ >= 3 # define mpd_const __attribute__ ((const)) # define mpd_deprecated __attribute__ ((deprecated)) # define mpd_malloc __attribute__ ((malloc)) @@ -25,8 +25,8 @@ # define mpd_used __attribute__ ((used)) /* # define inline inline __attribute__ ((always_inline)) */ # define mpd_noinline __attribute__ ((noinline)) -# define likely(x) __builtin_expect (!!(x), 1) -# define unlikely(x) __builtin_expect (!!(x), 0) +# define mpd_likely(x) __builtin_expect (!!(x), 1) +# define mpd_unlikely(x) __builtin_expect (!!(x), 0) #else # define mpd_const # define mpd_deprecated @@ -43,8 +43,8 @@ # define mpd_used /* # define inline */ # define mpd_noinline -# define likely(x) (x) -# define unlikely(x) (x) +# define mpd_likely(x) (x) +# define mpd_unlikely(x) (x) #endif #endif /* MPD_GCC_H */ -- cgit v1.2.3