{$B-} // Check IDE version {$IFDEF FPC} {$MODE DELPHI} {$ELSE} {$IFDEF CompillerVersion<23} Use RAD Studio XE2 and above. {$ENDIF} {$ENDIF} {$IFDEF VER230} { Delphi XE2 } {$DEFINE D16} {$DEFINE VER16} {$DEFINE VER5P} {$DEFINE VER6P} {$DEFINE VER7P} {$DEFINE VER8P} {$DEFINE VER9P} {$DEFINE VER10P} {$DEFINE VER11P} {$DEFINE VER12P} {$DEFINE VER14P} {$DEFINE VER15P} {$DEFINE VER16P} {$ENDIF} {$IFDEF VER240} { Delphi XE3 } {$DEFINE D17} {$DEFINE VER17} {$DEFINE VER5P} {$DEFINE VER6P} {$DEFINE VER7P} {$DEFINE VER8P} {$DEFINE VER9P} {$DEFINE VER10P} {$DEFINE VER11P} {$DEFINE VER12P} {$DEFINE VER14P} {$DEFINE VER15P} {$DEFINE VER16P} {$DEFINE VER17P} {$ENDIF} {$IFDEF VER250} { Delphi XE4 } {$DEFINE D18} {$DEFINE VER18} {$DEFINE VER5P} {$DEFINE VER6P} {$DEFINE VER7P} {$DEFINE VER8P} {$DEFINE VER9P} {$DEFINE VER10P} {$DEFINE VER11P} {$DEFINE VER12P} {$DEFINE VER14P} {$DEFINE VER15P} {$DEFINE VER16P} {$DEFINE VER17P} {$DEFINE VER18P} {$ENDIF} {$IFDEF VER260} { Delphi XE5 } {$DEFINE D19} {$DEFINE VER19} {$DEFINE VER5P} {$DEFINE VER6P} {$DEFINE VER7P} {$DEFINE VER8P} {$DEFINE VER9P} {$DEFINE VER10P} {$DEFINE VER11P} {$DEFINE VER12P} {$DEFINE VER14P} {$DEFINE VER15P} {$DEFINE VER16P} {$DEFINE VER17P} {$DEFINE VER18P} {$DEFINE VER19P} {$ENDIF} {$IFDEF VER270} { Delphi XE6 } {$DEFINE D20} {$DEFINE VER20} {$DEFINE VER5P} {$DEFINE VER6P} {$DEFINE VER7P} {$DEFINE VER8P} {$DEFINE VER9P} {$DEFINE VER10P} {$DEFINE VER11P} {$DEFINE VER12P} {$DEFINE VER14P} {$DEFINE VER15P} {$DEFINE VER16P} {$DEFINE VER17P} {$DEFINE VER18P} {$DEFINE VER19P} {$DEFINE VER20P} {$ENDIF} // End IDE version {$IFDEF CPU64} {$DEFINE CPUX64} { assembler for x64 - Lazarus compatibility } {$ENDIF} {$IFDEF CPU86} {$DEFINE CPUX86} { assembler for x86 - Lazarus compatibility } {$ENDIF} {$IFDEF IOS} {$DEFINE MOBILE} {$ENDIF} {$IFDEF ANDROID} {$DEFINE MOBILE} {$ENDIF} {$IFDEF MOBILE} {$DEFINE PUREPASCAL} {$ENDIF} {$IFDEF CPUARM} {$DEFINE PUREPASCAL} {$ENDIF} {$IFDEF CLR} {$DEFINE PUREPASCAL} {$ENDIF} {$IFDEF FPC} {$IFDEF IPHONESIM} {$DEFINE PUREPASCAL} {$ENDIF} {$IFNDEF PUREPASCAL} {$ASMMODE INTEL} {$ENDIF} {$MODE DELPHI} {$INTERFACES COM} {$ENDIF} {$IFDEF WIN32} {$DEFINE MSWINDOWS} {$DEFINE WIN32_64} {$ENDIF} {$IFDEF WIN64} {$DEFINE MSWINDOWS} {$DEFINE WIN32_64} {$ENDIF} {$IFDEF CLR} {$DEFINE MSWINDOWS} {$ENDIF} {$IFDEF DARWIN} {$DEFINE MACOS} {$ENDIF} {$IFNDEF NOINLINE} {$IFDEF FPC} {$DEFINE USE_INLINE} {$ENDIF} {$IFDEF VER9P} {$DEFINE USE_INLINE} {$ENDIF} {$ENDIF} {$IFDEF VER7P} {$WARN UNSAFE_TYPE OFF} {$WARN UNSAFE_CODE OFF} {$WARN UNSAFE_CAST OFF} {$ENDIF} {$IFDEF VER6P} {$WARN SYMBOL_PLATFORM OFF} {$WARN SYMBOL_DEPRECATED OFF} {$WARN UNIT_PLATFORM OFF} {$WARN UNIT_DEPRECATED OFF} {$ENDIF} {$IFNDEF VER6P} // Delphi5, CBuilder5 - UTF8 functions is not implemented {$DEFINE UTF8} {$ENDIF} {$IFNDEF CLR} {$IFDEF VER7P} {$DEFINE HAVE_COMPRESS} // ZLib build in Delphi {$ENDIF} {$ENDIF} {$IFDEF CLR} {$DEFINE IS_UNICODE} {$ENDIF} {$IFDEF VER12P} {$DEFINE IS_UNICODE} {$ENDIF} {$IFNDEF CLR} {$IFNDEF FPC} {$IFNDEF PUREPASCAL} {$IFNDEF CPUX64} {$DEFINE UseASM} // use Assembler optimated core {$ENDIF} {$ENDIF} {$ENDIF} {$ENDIF} {$IFDEF NEXTGEN} {$ZEROBASEDSTRINGS OFF} {$ENDIF} {$IFNDEF VER16P} {$IFNDEF CLR} {$DEFINE EXTENDEDIS10BYTES} {$ENDIF} {$ENDIF} {$IFDEF VER16} {$IFNDEF CPUX64} {$DEFINE EXTENDEDIS10BYTES} {$ENDIF} {$ENDIF} {$DEFINE DYNAMIC_LINKING}