winemac: Use min() rather than MIN(), which is not reliably defined.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ken Thomases 2016-10-26 10:58:35 -05:00 committed by Alexandre Julliard
parent 6196e944a2
commit 2a09548b59

View file

@ -439,7 +439,7 @@ static int bitmap_info_size(const BITMAPINFO *info, WORD coloruse)
}
else /* assume BITMAPINFOHEADER */
{
colors = MIN(info->bmiHeader.biClrUsed, 256);
colors = min(info->bmiHeader.biClrUsed, 256);
if (!colors && (info->bmiHeader.biBitCount <= 8))
colors = 1 << info->bmiHeader.biBitCount;
if (info->bmiHeader.biCompression == BI_BITFIELDS) masks = 3;