cheat-engine/Compilers_.inc
cheatengine@gmail.com 4d297adfd2
2011-07-04 19:52:19 +00:00

313 lines
7.1 KiB
PHP

// Copyright (c) 1999-2007 Rob Chandler, www.Helpware.net
// Code originally based on work done by Brad Stowers DFS.inc file
// and Mike Lischke's compilers.inc file (http://www.delphi-gems.com)
// VER80 Delphi 1
// VER90 Delphi 2
// VER100 Delphi 3
// VER120 Delphi 4
// VER130 Delphi 5
// VER140 Delphi 6
// VER150 Delphi 7
// VER160 Delphi 8
// VER170 Delphi 9 (2005)
//----------------------------------------------------------------------------------------------------------------------
{$ifdef CLR} // Common Language Runtime symbol only defined for the .NET platform.
{$define DELPHI.NET}
{$ifdef VER160}
{$define DELPHI.NET_1}
{$define DELHI.NET_1_UP}
{$endif VER160}
{$endif CLR}
{$ifdef Win32}
{$define DELPHI_1_UP}
{$define DELPHI_2_UP}
{$define DELPHI_3_UP}
{$define DELPHI_4_UP}
{$define DELPHI_5_UP}
{$define DELPHI_6_UP}
{$define DELPHI_7_UP}
{$define DELPHI_8_UP}
{$define DELPHI_9_UP}
{$define COMPILER_1_UP}
{$define COMPILER_2_UP}
{$define COMPILER_3_UP}
{$define COMPILER_4_UP}
{$define COMPILER_5_UP}
{$define COMPILER_6_UP}
{$define COMPILER_7_UP}
{$define COMPILER_8_UP}
{$define COMPILER_9_UP}
{$define COMPILER_10_UP}
{$define COMPILER_11_UP}
{$ifdef VER80}
{$undef DELPHI_2_UP}
{$undef DELPHI_3_UP}
{$undef DELPHI_4_UP}
{$undef DELPHI_5_UP}
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_2_UP}
{$undef COMPILER_3_UP}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_1}
{$define DELPHI}
{$define DELPHI_1}
{$endif}
{$IFDEF VER90} //Dephi 2
{$undef DELPHI_3_UP}
{$undef DELPHI_4_UP}
{$undef DELPHI_5_UP}
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_3_UP}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_2}
{$define DELPHI}
{$define DELPHI_2}
{$ENDIF}
{$ifdef VER93}
{$undef COMPILER_3_UP}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_2} // C_UP_UPB v1 compiler is really v2
{$define CPPB}
{$define CPPB_1}
{$endif}
{$IFDEF VER100} //Dephi 3
{$undef DELPHI_4_UP}
{$undef DELPHI_5_UP}
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_3}
{$define DELPHI}
{$define DELPHI_3}
{$ENDIF}
{$ifdef VER110}
{$undef COMPILER_4_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_3}
{$define CPPB}
{$define CPPB_3}
{$endif}
{$IFDEF VER120} //Dephi 4
{$undef DELPHI_5_UP}
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_4}
{$define DELPHI}
{$define DELPHI_4}
{$ENDIF}
{$ifdef VER125}
{$undef COMPILER_5_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_4}
{$define CPPB}
{$define CPPB_4}
{$endif}
{$IFDEF VER130} //Dephi 5
{$undef DELPHI_6_UP}
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_6_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_5}
{$ifdef BCB}
{$define CPPB}
{$define CPPB_5}
{$else}
{$define DELPHI}
{$define DELPHI_5}
{$endif}
{$ENDIF}
{$IFDEF VER140} //Dephi 6
{$undef DELPHI_7_UP}
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_7_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_6}
{$ifdef BCB}
{$define CPPB}
{$define CPPB_6}
{$else}
{$define DELPHI}
{$define DELPHI_6}
{$endif}
{$ENDIF}
{$IFDEF VER150} //Dephi 7
{$undef DELPHI_8_UP}
{$undef DELPHI_9_UP}
{$undef COMPILER_8_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_7}
{$ifdef BCB}
{$define CPPB}
{$define CPPB_7}
{$else}
{$define DELPHI}
{$define DELPHI_7}
{$endif}
{$ENDIF}
{$IFDEF VER160} //Dephi 8
{$undef DELPHI_9_UP}
{$undef COMPILER_9_UP}
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_8}
{$ENDIF}
{$IFDEF VER170} //Dephi 9 (2005)
{$undef COMPILER_10_UP}
{$undef COMPILER_11_UP}
{$define COMPILER_9}
{$ENDIF}
// DELPHI and BCB are no longer defined, only COMPILER
{$IFDEF VER180}
{$undef COMPILER_11_UP}
{$define COMPILER_10}
{$ENDIF}
{$ifdef VER190}
{$define COMPILER_11}
{$endif VER190}
//RWC: Not as forward compatible but it will do for now
{$ifdef CPPB_3}
{$define CPPB_3_UP}
{$endif}
{$ifdef CPPB_4}
{$define CPPB_3_UP}
{$define CPPB_4_UP}
{$endif}
{$ifdef CPPB_5}
{$define CPPB_3_UP}
{$define CPPB_4_UP}
{$define CPPB_5_UP}
{$endif}
{$ifdef CPPB_3_UP}
// C++ Builder requires this if you use Delphi components in run-time packages.
{$ObjExportAll On}
{$endif}
{$else (not Windows)}
// Linux is the target
{$define KYLIX}
{$define KYLIX_1}
{$define KYLIX_1_UP}
{$endif}
/////////////////////////////////////////////////////////////////////////////
// Stop the Platform messages
/////////////////////////////////////////////////////////////////////////////
{$IFDEF DELPHI_6_UP}
{$warn SYMBOL_PLATFORM off}
{$warn UNIT_PLATFORM off}
{$ENDIF}
//----------------------------------------------------------------------------------------------------------------------