[N-Rage] undeclared functions min() and max()
This commit is contained in:
parent
572418ec30
commit
d3edbf65fc
|
@ -170,4 +170,16 @@ typedef struct _ADAPTOIDPAK
|
|||
bool fRumblePak;
|
||||
} ADAPTOIDPAK, *LPADAPTOIDPAK;
|
||||
|
||||
/*
|
||||
* <windef.h> from under <windows.h> with MSVC defines these macros.
|
||||
* For some reason, they are unavailable with MinGW's copy of <windows.h>.
|
||||
*/
|
||||
#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_
|
||||
|
|
Loading…
Reference in New Issue