Problems with max and min in mingw
This commit is contained in:
parent
3504dfc7d1
commit
433d907ae8
|
@ -62,19 +62,21 @@ void roommatrix_populate_from_map(RoomMatrix *rm, Map *m)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef min
|
||||||
static int
|
static int
|
||||||
min(int a, int b)
|
min(int a, int b)
|
||||||
{
|
{
|
||||||
return a > b ? b : a;
|
return a > b ? b : a;
|
||||||
}
|
}
|
||||||
|
#endif // min
|
||||||
|
|
||||||
|
#ifndef max
|
||||||
static int
|
static int
|
||||||
max(int a, int b)
|
max(int a, int b)
|
||||||
{
|
{
|
||||||
return a > b ? a : b;
|
return a > b ? a : b;
|
||||||
}
|
}
|
||||||
#endif // _WIN32
|
#endif // max
|
||||||
|
|
||||||
void
|
void
|
||||||
roommatrix_update_with_player(RoomMatrix *rm, Player *p)
|
roommatrix_update_with_player(RoomMatrix *rm, Player *p)
|
||||||
|
|
Loading…
Reference in New Issue