(* RTInternals.inc (c) Tembo, 2011-2015 All rights reserved. http://tembolab.pl For more info visit: http://docwiki.embarcadero.com/RADStudio/en/Conditional_compilation_%28Delphi%29 http://docwiki.embarcadero.com/RADStudio/en/Compiler_Versions *) // Win16 {$IFDEF VER80} {$DEFINE DELPHI1} {$ENDIF} // Win32 {$IFDEF VER90} {$DEFINE DELPHI2} {$ENDIF} {$IFDEF VER100} {$DEFINE DELPHI3} {$ENDIF} {$IFDEF VER120} {$DEFINE DELPHI4} {$ENDIF} {$IFDEF VER130} {$DEFINE DELPHI5} {$ENDIF} {$IFDEF VER140} {$DEFINE DELPHI6} {$ENDIF} {$IFDEF VER150} {$DEFINE DELPHI7} {$ENDIF} {$IFDEF VER170} {$DEFINE DELPHI2005} {$DEFINE DELPHI9} {$ENDIF} {$IFDEF VER180} {$DEFINE DELPHI2006} {$DEFINE DELPHI10} {$ENDIF} {$IFDEF VER185} // D2007 defines also VER180 {$DEFINE DELPHI2007} {$DEFINE DELPHI11} {$ENDIF} {$IFDEF VER200} {$DEFINE DELPHI2009} {$DEFINE DELPHI12} {$ENDIF} {$IFDEF VER210} {$DEFINE DELPHI2010} {$DEFINE DELPHI14} {$ENDIF} {$IFDEF VER220} {$DEFINE DELPHIXE} {$DEFINE DELPHI15} {$ENDIF} {$IFDEF VER230} {$DEFINE DELPHIXE2} {$DEFINE DELPHI16} {$ENDIF} {$IFDEF VER240} {$DEFINE DELPHIXE3} {$DEFINE DELPHI17} {$ENDIF} {$IFDEF VER250} {$DEFINE DELPHIXE4} {$DEFINE DELPHI18} {$ENDIF} {$IFDEF VER260} {$DEFINE DELPHIXE5} {$DEFINE DELPHI19} {$ENDIF} {$IFDEF VER270} {$DEFINE DELPHIXE6} {$DEFINE DELPHI20} {$ENDIF} {$IFDEF VER280} {$DEFINE DELPHIXE7} {$DEFINE DELPHI21} {$ENDIF} {$IFDEF VER290} {$DEFINE DELPHIXE8} {$DEFINE DELPHI22} {$ENDIF} {$IFDEF VER300} {$DEFINE DELPHIXE10} {$DEFINE DELPHISEATTLE} {$DEFINE DELPHI23} {$ENDIF} // Delphi mappings {$IFDEF DELPHI1} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI2} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI3} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI4} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI5} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI6} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI7} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI8} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI2005} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI2006} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI2007} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI2009} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHI2010} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHIXE} {$DEFINE DELPHIXE_UP} {$DEFINE DELPHI15_UP} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHIXE2} {$DEFINE DELPHIXE2_UP} {$DEFINE DELPHI16_UP} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHIXE3} {$DEFINE DELPHIXE3_UP} {$DEFINE DELPHI17_UP} {$DEFINE DELPHIXE2_UP} {$DEFINE DELPHI16_UP} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHIXE4} {$DEFINE DELPHIXE4_UP} {$DEFINE DELPHI18_UP} {$DEFINE DELPHIXE3_UP} {$DEFINE DELPHI17_UP} {$DEFINE DELPHIXE2_UP} {$DEFINE DELPHI16_UP} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHIXE5} {$DEFINE DELPHIXE5_UP} {$DEFINE DELPHI19_UP} {$DEFINE DELPHIXE4_UP} {$DEFINE DELPHI18_UP} {$DEFINE DELPHIXE3_UP} {$DEFINE DELPHI17_UP} {$DEFINE DELPHIXE2_UP} {$DEFINE DELPHI16_UP} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHIXE6} {$DEFINE DELPHIXE6_UP} {$DEFINE DELPHI20_UP} {$DEFINE DELPHIXE5_UP} {$DEFINE DELPHI19_UP} {$DEFINE DELPHIXE4_UP} {$DEFINE DELPHI18_UP} {$DEFINE DELPHIXE3_UP} {$DEFINE DELPHI17_UP} {$DEFINE DELPHIXE2_UP} {$DEFINE DELPHI16_UP} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHIXE7} {$DEFINE DELPHIXE7_UP} {$DEFINE DELPHI21_UP} {$DEFINE DELPHIXE6_UP} {$DEFINE DELPHI20_UP} {$DEFINE DELPHIXE5_UP} {$DEFINE DELPHI19_UP} {$DEFINE DELPHIXE4_UP} {$DEFINE DELPHI18_UP} {$DEFINE DELPHIXE3_UP} {$DEFINE DELPHI17_UP} {$DEFINE DELPHIXE2_UP} {$DEFINE DELPHI16_UP} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHIXE8} {$DEFINE DELPHIXE8_UP} {$DEFINE DELPHI22_UP} {$DEFINE DELPHIXE7_UP} {$DEFINE DELPHI21_UP} {$DEFINE DELPHIXE6_UP} {$DEFINE DELPHI20_UP} {$DEFINE DELPHIXE5_UP} {$DEFINE DELPHI19_UP} {$DEFINE DELPHIXE4_UP} {$DEFINE DELPHI18_UP} {$DEFINE DELPHIXE3_UP} {$DEFINE DELPHI17_UP} {$DEFINE DELPHIXE2_UP} {$DEFINE DELPHI16_UP} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} {$IFDEF DELPHIXE10} {$DEFINE DELPHIXE10_UP} {$DEFINE DELPHISEATTLE_UP} {$DEFINE DELPHI23_UP} {$DEFINE DELPHIXE8_UP} {$DEFINE DELPHI22_UP} {$DEFINE DELPHIXE7_UP} {$DEFINE DELPHI21_UP} {$DEFINE DELPHIXE6_UP} {$DEFINE DELPHI20_UP} {$DEFINE DELPHIXE5_UP} {$DEFINE DELPHI19_UP} {$DEFINE DELPHIXE4_UP} {$DEFINE DELPHI18_UP} {$DEFINE DELPHIXE3_UP} {$DEFINE DELPHI17_UP} {$DEFINE DELPHIXE2_UP} {$DEFINE DELPHI16_UP} {$DEFINE DELPHI2010_UP} {$DEFINE DELPHI14_UP} {$DEFINE DELPHI2009_UP} {$DEFINE DELPHI12_UP} {$DEFINE DELPHI2007_UP} {$DEFINE DELPHI11_UP} {$DEFINE DELPHI2006_UP} {$DEFINE DELPHI10_UP} {$DEFINE DELPHI2005_UP} {$DEFINE DELPHI9_UP} {$DEFINE DELPHI8_UP} {$DEFINE DELPHI7_UP} {$DEFINE DELPHI6_UP} {$DEFINE DELPHI5_UP} {$DEFINE DELPHI4_UP} {$DEFINE DELPHI3_UP} {$DEFINE DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF} // Win32/Win64 {$IFDEF DELPHIXE2_UP} {$IFDEF CPUX64} {$DEFINE CPU64} {$ELSE} // CPU386, CPUX86 {$DEFINE CPU32} {$ENDIF} {$ELSE {$DEFINE CPU32} {$ENDIF} // Use internal MSWINDOWS, WIN32/WIN64, MACOS/MACOS32/IOS and ANDROID to detect OS // .NET {$IFDEF CLR} {$DEFINE DOTNET} {$IFDEF VER160} {$DEFINE DELPHI8} {$ENDIF} {$IFDEF VER170} {$DEFINE DELPHI2005_NET} {$ENDIF} {$IFDEF VER180} {$DEFINE DELPHI2006_NET} {$ENDIF} {$IFDEF VER190} {$DEFINE DELPHI2007_NET} {$ENDIF} {$IFDEF VER200} {$DEFINE PRISM2009} {$ENDIF} {$IFDEF VER210} {$DEFINE PRISM2010} {$ENDIF} {$IFDEF VER220} {$DEFINE PRISMXE} {$ENDIF} {$IFDEF VER230} {$DEFINE PRISMXE2} {$ENDIF} {$IFDEF VER240} {$DEFINE PRISMXE2} {$ENDIF} {$ENDIF} // Compiler features {$IFDEF DELPHI6_UP} {$DEFINE RT_MESSAGES} // MESSAGE directive {$ENDIF} {$IFDEF DELPHI2005_UP} {$DEFINE FOR_IN} // for-in loop {$DEFINE NESTED} // nested types and constants {$DEFINE REGIONS} // REGION and ENDREGION directives {$DEFINE INLINE} // inline directive {$INLINE AUTO} {$ENDIF} {$IFDEF DELPHI2007_UP} {$DEFINE HAS_GIFIMG} // GIFImg.pas {$DEFINE HAS_VISTADIALOGS} // new dialogs from Windows Vista {$ENDIF} {$IFDEF DELPHI2009_UP} {$DEFINE HAS_PNGIMAGE} // pngimage.pas {$DEFINE INT_ALIASES} // Int8, Int16, Int32, UInt8, UInt16, UInt32 and UInt64 {$DEFINE GENERICS} // supports generics, dictionaries and hashes {$ENDIF} {$IFDEF DELPHI2010_UP} {$DEFINE HAS_RTTI} // new RTTI routines {$ENDIF} {$IFDEF DELPHIXE2_UP} {$DEFINE HAS_UNIT_NAMESPACES} // new units names {$DEFINE HAS_VCLSTYLES} // VCL Styles {$DEFINE HAS_REGEXPR} // integrated regular expression library {$ENDIF} {$IFDEF DELPHIXE7_UP} {$DEFINE HAS_MANAGEDARRAYS} // managed arrays {$DEFINE HAS_PARALLELLIBRARY} // Parallel Programming Library {$ENDIF} {$IFDEF DELPHIXE8_UP} {$DEFINE HAS_HASHAPI} // System.Hash {$DEFINE HAS_FIXEDINT} // platform independent 32-bit integers (FixedInt and FixedUInt) {$ENDIF} {$IFDEF DELPHIXE10_UP} {$DEFINE HAS_WIN10CONTROLS} // Windows 10 controls {$DEFINE HAS_MODERNDIRECTORYDIALOG} // Vcl.FileCtrl.SelectDirectory supports Windows Vista and newer directory dialog {$ENDIF} {$IF DECLARED(NativeInt)} // D2007+ {$DEFINE NATIVEINT} {$IFEND}