Define MIN/MAX on Windows platform (Thanks to Glenn)
This commit is contained in:
parent
d5c8188e99
commit
f32013aba5
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@
|
|||
# include <windows.h>
|
||||
# if defined (__MINGW32__)
|
||||
# define snprintf(S, n, F, ...) sprintf(S, F, __VA_ARGS__)
|
||||
# define MAX(a,b) max(a,b)
|
||||
# define MIN(a,b) min(a,b)
|
||||
# else
|
||||
# define snprintf sprintf_s
|
||||
# define strdup _strdup
|
||||
|
|
Loading…
Reference in a new issue