(min, max) [_WIN32, __GNUC__]: Add min and max macros for

mingw/gcc compile environment.  min/max are not included
in stdlib.h in mingw/gcc environment.
This commit is contained in:
Ron Koenderink 2006-01-01 16:02:48 +00:00
parent 354af75dd6
commit 5aba44f5f2

View file

@ -48,9 +48,11 @@ typedef long ssize_t;
/* integral mismatch, due to misuse of sector short */
#ifndef __GNUC__
#pragma warning (disable : 4761 )
#else
#define max(a,b) ((a)>(b)?(a):(b))
#define min(a,b) ((a)<(b)?(a):(b))
#endif
#include <windef.h>
#include <io.h>
#define random rand