File nsis-2.45-minmax.patch of Package mingw32-cross-nsis
--- Contrib/InstallOptions/InstallerOptions.cpp 2009-02-04 15:08:31.000000000 +0100 +++ Contrib/InstallOptions/InstallerOptions.cpp 2010-05-07 09:32:51.000000000 +0200 @@ -25,6 +25,11 @@ #define INLINE inline #endif +#ifdef min +#undef min +#endif +#define min(a,b) (a < b ? a : b) + void *WINAPI MALLOC(int len) { return (void*)GlobalAlloc(GPTR,len); } void WINAPI FREE(void *d) { if (d) GlobalFree((HGLOBAL)d); }