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
This commit is contained in:
Tom Mason 2017-07-15 13:17:57 +01:00
parent 641af3083a
commit 5801940e0e

View File

@ -76,6 +76,10 @@ typedef
#ifdef _WIN32 #ifdef _WIN32
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
# include <windows.h> # include <windows.h>
# ifdef small
/* windows.h define small to char */
# undef small
# endif
# include <io.h> # include <io.h>
# include <sys/utime.h> # include <sys/utime.h>
# define fdopen _fdopen # define fdopen _fdopen