From 5801940e0e20c7a54c9cc304408bb4be5deedf7a Mon Sep 17 00:00:00 2001 From: Tom Mason Date: Sat, 15 Jul 2017 13:17:57 +0100 Subject: [PATCH] bring back small undef undef for small was removed when converting to cmake build system, which breaks compile on windows if bzlib.h is included after windows.h --- bzlib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bzlib.h b/bzlib.h index 8904990..739c67b 100644 --- a/bzlib.h +++ b/bzlib.h @@ -76,6 +76,10 @@ typedef #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN # include +# ifdef small + /* windows.h define small to char */ +# undef small +# endif # include # include # define fdopen _fdopen