mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-10 09:33:48 +00:00
Define MIN/MAX on Windows platform (Thanks to Glenn)
This commit is contained in:
@@ -28,6 +28,8 @@
|
|||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# if defined (__MINGW32__)
|
# if defined (__MINGW32__)
|
||||||
# define snprintf(S, n, F, ...) sprintf(S, F, __VA_ARGS__)
|
# 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
|
# else
|
||||||
# define snprintf sprintf_s
|
# define snprintf sprintf_s
|
||||||
# define strdup _strdup
|
# define strdup _strdup
|
||||||
|
|||||||
Reference in New Issue
Block a user