From ff6000745886cb085ca80e42498020497bc7f95f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 3 Apr 2011 22:23:14 +0000 Subject: Fix build with NDEBUG defined svn path=/trunk/netsurf/; revision=12154 --- utils/log.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'utils/log.h') diff --git a/utils/log.h b/utils/log.h index 84a211d95..b49f439db 100644 --- a/utils/log.h +++ b/utils/log.h @@ -24,11 +24,6 @@ #include "desktop/netsurf.h" #include "utils/errors.h" -#ifdef NDEBUG -# define LOG(x) ((void) 0) -#else - - /** * Ensures the FILE handle is available to write logging to. * @@ -45,6 +40,10 @@ typedef bool(nslog_ensure_t)(FILE *fptr); */ extern nserror nslog_init(nslog_ensure_t *ensure, int *pargc, char **argv); +#ifdef NDEBUG +# define LOG(x) ((void) 0) +#else + /** * Obtain a formatted string suitable for prepending to a log message * -- cgit v1.2.3