From: Steven Schubiger Date: Sun, 14 Dec 2014 13:55:28 +0000 (+0100) Subject: Check if BUF_SIZE is defined X-Git-Tag: v0.55~6 X-Git-Url: http://git.refcnt.org/?p=colorize.git;a=commitdiff_plain;h=4d45ddf88f1aa507ff7fae37c412a03b25e25129 Check if BUF_SIZE is defined --- 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