diff --git a/source/uCEFApplication.pas b/source/uCEFApplication.pas index 255bbd33..07934ee4 100644 --- a/source/uCEFApplication.pas +++ b/source/uCEFApplication.pas @@ -894,6 +894,7 @@ begin CEF_SUPPORTED_VERSION_RELEASE, CEF_SUPPORTED_VERSION_BUILD) then begin + {$IFDEF MSWINDOWS} if GetDLLHeaderMachine(LibCefPath, TempMachine) then case TempMachine of IMAGE_FILE_MACHINE_I386 : @@ -936,6 +937,9 @@ begin end else Result := True; + {$ELSE} + Result := True; + {$ENDIF} end else begin diff --git a/source/uCEFConstants.pas b/source/uCEFConstants.pas index ee52e86b..3cf3f1e0 100644 --- a/source/uCEFConstants.pas +++ b/source/uCEFConstants.pas @@ -400,17 +400,6 @@ const CEF4DELPHI_URL = 'https://github.com/salvadordf/CEF4Delphi'; CRLF = #13 + #10; - IMAGE_FILE_MACHINE_UNKNOWN = 0; - IMAGE_FILE_MACHINE_I386 = $014c; // Intel x86 - IMAGE_FILE_MACHINE_IA64 = $0200; // Intel Itanium Processor Family (IPF) - IMAGE_FILE_MACHINE_AMD64 = $8664; // x64 (AMD64 or EM64T) - IMAGE_FILE_MACHINE_R3000_BE = $160; // MIPS big-endian - IMAGE_FILE_MACHINE_R3000 = $162; // MIPS little-endian, 0x160 big-endian - IMAGE_FILE_MACHINE_R4000 = $166; // MIPS little-endian - IMAGE_FILE_MACHINE_R10000 = $168; // MIPS little-endian - IMAGE_FILE_MACHINE_ALPHA = $184; // Alpha_AXP } - IMAGE_FILE_MACHINE_POWERPC = $1F0; // IBM PowerPC Little-Endian - implementation end.