diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
commit | 4ebba1b36f4f171fb5daa25a8578e21d2740c517 (patch) | |
tree | d65b86318939ce111bf855539aa4d1b3e2bc581b /src/mpdclient.c | |
parent | 7d98fb19dc2b7c3af289b0a7c1a0db68e7fea8c9 (diff) | |
download | mpd-4ebba1b36f4f171fb5daa25a8578e21d2740c517.tar.gz mpd-4ebba1b36f4f171fb5daa25a8578e21d2740c517.tar.xz mpd-4ebba1b36f4f171fb5daa25a8578e21d2740c517.zip |
use !NDEBUG instead of DEBUG
NDEBUG is more commonly used than DEBUG, e.g. in assert.h. Convert
all macros to NDEBUG, and declare NDEBUG when debugging is disabled.
Diffstat (limited to '')
-rw-r--r-- | src/mpdclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mpdclient.c b/src/mpdclient.c index cc31f9ca5..9f060c46d 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -115,7 +115,7 @@ error_cb(mpdclient_t *c, gint error, gchar *msg) return error; } -#ifdef DEBUG +#ifndef NDEBUG // Unused ath the moment /* #include "strfsong.h" @@ -246,7 +246,7 @@ mpdclient_update(mpdclient_t *c) c->status = mpd_getStatus(c->connection); if( (retval=mpdclient_finish_command(c)) ) return retval; -#ifdef DEBUG +#ifndef NDEBUG if( c->status->error ) D("status> %s\n", c->status->error); #endif |