]> git.refcnt.org Git - colorize.git/commitdiff
Check if BUF_SIZE is defined
authorSteven Schubiger <stsc@refcnt.org>
Sun, 14 Dec 2014 13:55:28 +0000 (14:55 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 14 Dec 2014 13:55:28 +0000 (14:55 +0100)
colorize.c

index c7fa2bb7dcf1d6029177f08eaa271ca71b0f4a8b..2cd137a5e65b18452f55115d554974ae285c9c58 100644 (file)
@@ -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