diff --git a/Source/nragev20/PakIO.h b/Source/nragev20/PakIO.h index d8bd176dd..720654d24 100644 --- a/Source/nragev20/PakIO.h +++ b/Source/nragev20/PakIO.h @@ -170,4 +170,16 @@ typedef struct _ADAPTOIDPAK bool fRumblePak; } ADAPTOIDPAK, *LPADAPTOIDPAK; +/* + * from under with MSVC defines these macros. + * For some reason, they are unavailable with MinGW's copy of . + */ +#ifndef max +#define max(a, b) (((a) > (b)) ? (a) : (b)) +#endif + +#ifndef min +#define min(a, b) (((a) < (b)) ? (a) : (b)) +#endif + #endif // #ifndef _PAKIO_H_