(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:
parent
354af75dd6
commit
5aba44f5f2
1 changed files with 3 additions and 1 deletions
|
@ -48,9 +48,11 @@ typedef long ssize_t;
|
||||||
/* integral mismatch, due to misuse of sector short */
|
/* integral mismatch, due to misuse of sector short */
|
||||||
#ifndef __GNUC__
|
#ifndef __GNUC__
|
||||||
#pragma warning (disable : 4761 )
|
#pragma warning (disable : 4761 )
|
||||||
|
#else
|
||||||
|
#define max(a,b) ((a)>(b)?(a):(b))
|
||||||
|
#define min(a,b) ((a)<(b)?(a):(b))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <windef.h>
|
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
||||||
#define random rand
|
#define random rand
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue