From 962431dd3df0062e5762165eb69dfc23608c8aad Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 6 Mar 2020 20:15:52 +0000 Subject: Rename mask to msk There's something about "mask" which causes the version of GCC we use for the m68k-amigaos build to misinterpret the code --- include/netsurf/plot_style.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/netsurf/plot_style.h b/include/netsurf/plot_style.h index fee7a1078..6f2977f63 100644 --- a/include/netsurf/plot_style.h +++ b/include/netsurf/plot_style.h @@ -214,7 +214,7 @@ static inline colour colour_engorge_component( bool dark, enum plot_colour_component comp) { - static const colour mask[PLOT_COLOUR_COMPONENT_ALPHA] = { + static const colour msk[PLOT_COLOUR_COMPONENT_ALPHA] = { [PLOT_COLOUR_COMPONENT_RED] = 0x0000ff, [PLOT_COLOUR_COMPONENT_GREEN] = 0x00ff00, [PLOT_COLOUR_COMPONENT_BLUE] = 0xff0000, @@ -224,7 +224,7 @@ static inline colour colour_engorge_component( assert(comp < PLOT_COLOUR_COMPONENT_ALPHA); - return (mask[comp] & l) | (~mask[comp] & d); + return (msk[comp] & l) | (~msk[comp] & d); } -- cgit v1.2.3