From 99151309facb58c4628f52660b5bf08f7abc9aeb Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Wed, 28 Nov 2007 14:37:40 -0800 Subject: [PATCH] 405259 - "Compile error in nsNativeThemeWin.cpp with MingW GCC" [p=jfwfreo@tpgi.com.au r+sr=roc a1.9=beltzner] --- widget/src/windows/nsNativeThemeWin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/windows/nsNativeThemeWin.cpp b/widget/src/windows/nsNativeThemeWin.cpp index dc10b927ebd..a9888bcab7e 100644 --- a/widget/src/windows/nsNativeThemeWin.cpp +++ b/widget/src/windows/nsNativeThemeWin.cpp @@ -407,8 +407,8 @@ static SIZE GetGutterSize(HANDLE theme, HDC hdc) SIZE itemSize; getThemePartSize(theme, hdc, MENU_POPUPITEM, MPI_NORMAL, NULL, TS_TRUE, &itemSize); - int width = max(itemSize.cx, checkboxSize.cx + gutterSize.cx); - int height = max(itemSize.cy, checkboxSize.cy); + int width = PR_MAX(itemSize.cx, checkboxSize.cx + gutterSize.cx); + int height = PR_MAX(itemSize.cy, checkboxSize.cy); SIZE ret; ret.cx = width; ret.cy = height;