mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-04-17 06:57:13 +02:00
Added renamed constants for backwards compatibility
This commit is contained in:
parent
f788f87646
commit
c8e354b8e5
@ -897,7 +897,7 @@ begin
|
||||
{$IFDEF MSWINDOWS}
|
||||
if GetDLLHeaderMachine(LibCefPath, TempMachine) then
|
||||
case TempMachine of
|
||||
IMAGE_FILE_MACHINE_I386 :
|
||||
CEF_IMAGE_FILE_MACHINE_I386 :
|
||||
if Is32BitProcess then
|
||||
Result := True
|
||||
else
|
||||
@ -910,7 +910,7 @@ begin
|
||||
ShowErrorMessageDlg(TempString);
|
||||
end;
|
||||
|
||||
IMAGE_FILE_MACHINE_AMD64 :
|
||||
CEF_IMAGE_FILE_MACHINE_AMD64 :
|
||||
if not(Is32BitProcess) then
|
||||
Result := True
|
||||
else
|
||||
|
@ -400,6 +400,12 @@ const
|
||||
CEF4DELPHI_URL = 'https://github.com/salvadordf/CEF4Delphi';
|
||||
CRLF = #13 + #10;
|
||||
|
||||
// These contants are declared in the "Windows" unit but
|
||||
// some old Delphi versions don't have them.
|
||||
// We have to add "CEF_" to be compatible with C++ Builder.
|
||||
CEF_IMAGE_FILE_MACHINE_I386 = $014C;
|
||||
CEF_IMAGE_FILE_MACHINE_AMD64 = $8664;
|
||||
|
||||
implementation
|
||||
|
||||
end.
|
||||
|
Loading…
x
Reference in New Issue
Block a user