From 4d45ddf88f1aa507ff7fae37c412a03b25e25129 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Sun, 14 Dec 2014 14:55:28 +0100 Subject: Check if BUF_SIZE is defined --- colorize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3