From f32013aba57b770ce4730a567d47b99597004dd0 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Mon, 17 Jan 2011 13:41:25 +0000 Subject: [PATCH] Define MIN/MAX on Windows platform (Thanks to Glenn) --- contrib/windows.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/windows.h b/contrib/windows.h index 0ce33ba..caad550 100644 --- a/contrib/windows.h +++ b/contrib/windows.h @@ -28,6 +28,8 @@ # include # 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