summaryrefslogtreecommitdiff
path: root/src/utils/log.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-29 01:38:08 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-29 01:38:08 +0000
commit0e9f500cdd1193c6c32c7fc460453f830fdeff1a (patch)
tree2eccdb5ec1811f39018c08db4c3f8a8e533c63f2 /src/utils/log.h
parent68a1ebce3438ee4fc2a2ba5b0236f56d9eec244f (diff)
downloadlibnsgif-0e9f500cdd1193c6c32c7fc460453f830fdeff1a.tar.gz
libnsgif-0e9f500cdd1193c6c32c7fc460453f830fdeff1a.tar.bz2
First cut at a port to the core buildsystem
svn path=/trunk/libnsgif/; revision=6983
Diffstat (limited to 'src/utils/log.h')
-rw-r--r--src/utils/log.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/utils/log.h b/src/utils/log.h
new file mode 100644
index 0000000..1413374
--- /dev/null
+++ b/src/utils/log.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2003 James Bursa <bursa@users.sourceforge.net>
+ * Copyright 2004 John Tytgat <John.Tytgat@aaug.net>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ * Licenced under the MIT License,
+ * http://www.opensource.org/licenses/mit-license.php
+ */
+
+#include <stdio.h>
+
+#ifndef _LIBNSGIF_LOG_H_
+#define _LIBNSGIF_LOG_H_
+
+#ifdef NDEBUG
+# define LOG(x) ((void) 0)
+#else
+# define LOG(x) do { fprintf(stderr, x), fputc('\n', stderr); } while (0)
+#endif /* NDEBUG */
+
+#endif /* _LIBNSGIF_LOG_H_ */