summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-29 01:30:16 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-29 01:30:16 +0000
commit0b32a222231826bc894557c322f1f1b908103e3c (patch)
treed2466b83e46e3d093f2ab714668b8f9a9a90e477 /src/utils
parent97605136e418460d34df2f05b93d7281927eafb5 (diff)
downloadlibnsbmp-0b32a222231826bc894557c322f1f1b908103e3c.tar.gz
libnsbmp-0b32a222231826bc894557c322f1f1b908103e3c.tar.bz2
First cut at a port to the new buildsystem
svn path=/trunk/libnsbmp/; revision=6981
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/log.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/utils/log.h b/src/utils/log.h
new file mode 100644
index 0000000..b63f084
--- /dev/null
+++ b/src/utils/log.h
@@ -0,0 +1,27 @@
+/*
+ * 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 _LIBNSBMP_LOG_H_
+#define _LIBNSBMP_LOG_H_
+
+#ifdef NDEBUG
+# define LOG(x) ((void) 0)
+#else
+# ifdef __GNUC__
+# define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
+# elif defined(__CC_NORCROFT)
+# define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
+# else
+# define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
+# endif
+#endif
+
+#endif