From 0e9f500cdd1193c6c32c7fc460453f830fdeff1a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 29 Mar 2009 01:38:08 +0000 Subject: First cut at a port to the core buildsystem svn path=/trunk/libnsgif/; revision=6983 --- src/utils/log.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/utils/log.h (limited to 'src/utils/log.h') 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 + * Copyright 2004 John Tytgat + * + * 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 + +#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_ */ -- cgit v1.2.3