aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2014-12-14 14:55:28 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2014-12-14 14:55:28 +0100
commit4d45ddf88f1aa507ff7fae37c412a03b25e25129 (patch)
treeea5b2c4af53208b76b0ba1b73854967ff2f1e2f0
parent1ab5e56778210aee970bff1b47b4c28900107967 (diff)
downloadcolorize-4d45ddf88f1aa507ff7fae37c412a03b25e25129.tar.gz
colorize-4d45ddf88f1aa507ff7fae37c412a03b25e25129.tar.bz2
Check if BUF_SIZE is defined
-rw-r--r--colorize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/colorize.c b/colorize.c
index c7fa2bb..2cd137a 100644
--- a/colorize.c
+++ b/colorize.c
@@ -60,7 +60,7 @@
#define free_null(ptr) free_wrap((void **)&ptr)
-#if BUF_SIZE <= 0 || BUF_SIZE > 65536
+#if defined(BUF_SIZE) && (BUF_SIZE <= 0 || BUF_SIZE > 65536)
# undef BUF_SIZE
#endif
#ifndef BUF_SIZE