Win32: ifdef then const declaration of CC_ANYCOLOR for fpc < 3.3.1.

(cherry picked from commit 7c3e5aa112)

Co-authored-by: Bart <9132501-flyingsheep@users.noreply.gitlab.com>
This commit is contained in:
Maxim Ganetsky 2024-12-10 19:48:10 +00:00 committed by Maxim Ganetsky
parent 29a3cdf6fa
commit c76d54fc11

View File

@ -372,8 +372,10 @@ begin
end;
class function TWin32WSColorDialog.ColorDialogOptionsToFlags(Options: TColorDialogOptions): DWORD;
{$if fpc_fullversion < 30301}
const
CC_ANYCOLOR = $00000100;
{$endif fpc_fullversion < 30301}
begin
Result := 0;
if cdFullOpen in Options then Result := Result or CC_FULLOPEN;