diff options
author | Sean Fox <dyntryx@gmail.com> | 2008-08-23 21:28:31 +0000 |
---|---|---|
committer | Sean Fox <dyntryx@gmail.com> | 2008-08-23 21:28:31 +0000 |
commit | f8fe88a2cd688b62f50ae5b00eb74a5e5500e019 (patch) | |
tree | 7a8cf55c76b78c3e04468250745f546013f54ab1 /utils/log.h | |
parent | 480304fbb190cd0dbfea23b1a84fe8d85e414579 (diff) | |
download | libnsgif-f8fe88a2cd688b62f50ae5b00eb74a5e5500e019.tar.gz libnsgif-f8fe88a2cd688b62f50ae5b00eb74a5e5500e019.tar.bz2 |
- 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
Diffstat (limited to 'utils/log.h')
-rw-r--r-- | utils/log.h | 12 |
1 files changed, 3 insertions, 9 deletions
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_ */ |