diff options
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_ */ |