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:
parent
6196e944a2
commit
2a09548b59
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue