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

This commit is contained in:
Bart 2024-12-10 18:26:32 +01:00
parent 9e143167ff
commit 7c3e5aa112

View File

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