2009-04-15 27 views

Trả lời

37

Một phiên bản Delphi rất, rất tốt bao gồm tập tin là jedi.inc từ Thư viện Mã JEDI (JCL).

Nó luôn luôn là up-to-date và có chỉ thị như DELPHI2009 hoặc DELPHI14_UP ... và nó bao gồm rất nhiều "Chỉ Feature" như SUPPORTS_INT64 hoặc SUPPORTS_UNICODE_STRING.

Đây là link to the repository.

+1

Đồng ý, đó là một trong rất phong phú! –

+0

Tôi nghĩ rằng đây là một trong những tôi muốn giới thiệu trong tương lai !! –

+0

Đây là tài liệu gốc mà tôi đã gửi cho Jedi về điều này, nó cung cấp lý do tại sao để làm điều này: http://www.stack.nl/~marcov/porting.pdf (chương 2) –

7

Bạn có thể cho chúng ta GX_CondDefine.inc Từ gexperts plugin tuyệt vời:

{$IFDEF CONDITIONALEXPRESSIONS} 
    {$IFDEF BCB} 
    {$DEFINE GX_BCB} 
    {$ELSE} 
    {$DEFINE GX_Delphi} 
    {$ENDIF} 

    {$IF CompilerVersion >= 14} 
    {$DEFINE GX_VER140_up} // Delphi 6 
    {$IFDEF LINUX} 
     {$DEFINE GX_KYLIX} 
     {$IF RTLVersion = 14.2} 
     {$DEFINE GX_KYLIX2} // Kylix 2 
     {$IFEND} 
     {$IF RTLVersion = 14.5} 
     {$DEFINE GX_KYLIX3} // Kylix 3 
     {$IFEND} 
    {$ENDIF} 
    {$IF CompilerVersion >= 15} 
     {$DEFINE GX_VER150_up} // Delphi 7 
     {$IF CompilerVersion >= 16} 
     {$DEFINE GX_VER160_up} // Delphi 8 
     {$IF CompilerVersion >= 17} 
      {$DEFINE GX_VER170_up} // Delphi 9/2005 
      {$IF CompilerVersion >= 18} 
      {$DEFINE GX_VER180_up} // BDS 2006 
      {$IFDEF VER185} 
       {$DEFINE GX_VER185_up} // Delphi 2007 
      {$ENDIF} 
      {$IF CompilerVersion >= 19} 
       {$DEFINE GX_VER190_up} // Delphi .NET 2007 
       {$IF CompilerVersion >= 20} 
       {$DEFINE GX_VER200_up} // RAD Studio 2009 
       {$IFEND} 
      {$IFEND} 
      {$IFEND} 
     {$IFEND} 
     {$IFEND} 
    {$IFEND} 
    {$IFEND} 
{$ELSE not CONDITIONALEXPRESSIONS} 
    Sorry, but this version of GExperts does not support the IDE 
    you are using. Please visit the GExperts web site at 
    http://www.gexperts.org/ to obtain more information about 
    support for your IDE. 
{$ENDIF} 
Các vấn đề liên quan