From f8fe88a2cd688b62f50ae5b00eb74a5e5500e019 Mon Sep 17 00:00:00 2001 From: Sean Fox Date: Sat, 23 Aug 2008 21:28:31 +0000 Subject: - LOG now prints to stderr, so it won't disrupt the gif decoding example, which reads from stdout - Correct the way block data is skipped when processing extensions - Remove a lot of code that was apparently rendered useless with previous commits and was causing problems when displaying some gif animations svn path=/trunk/libnsgif/; revision=5187 --- utils/log.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'utils/log.h') diff --git a/utils/log.h b/utils/log.h index d204ec9..d70a44b 100644 --- a/utils/log.h +++ b/utils/log.h @@ -25,13 +25,7 @@ #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 +# define LOG(x) do { fprintf(stderr, x), fputc('\n', stderr); } while (0) +#endif /* NDEBUG */ -#endif +#endif /* _LIBNSGIF_LOG_H_ */ -- cgit v1.2.3