summaryrefslogtreecommitdiff
path: root/utils/log.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-04-03 22:23:14 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-04-03 22:23:14 +0000
commitff6000745886cb085ca80e42498020497bc7f95f (patch)
tree41439653b4e24185009d6c48c9f8b37b4c93894f /utils/log.h
parent2ca6e9a3e6bd7450cd1fb80db3a777956c804e11 (diff)
downloadnetsurf-ff6000745886cb085ca80e42498020497bc7f95f.tar.gz
netsurf-ff6000745886cb085ca80e42498020497bc7f95f.tar.bz2
Fix build with NDEBUG defined
svn path=/trunk/netsurf/; revision=12154
Diffstat (limited to 'utils/log.h')
-rw-r--r--utils/log.h9
1 files changed, 4 insertions, 5 deletions
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
*