mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue