| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- // -----------------------------------------------------------------------------
- // Project: Drag and Drop Component Suite
- // Module: DragDrop.inc
- // Description: This include file contains common defines used by the
- // library.
- // Authors: Anders Melander, anders@melander.dk, http://www.melander.dk
- // Copyright © 1997-2000 Angus Johnson & Anders Melander
- // -----------------------------------------------------------------------------
- // -----------------------------------------------------------------------------
- // Detect compiler version
- // -----------------------------------------------------------------------------
- // Delphi 1.x
- {$IFDEF VER80}
- {$DEFINE VER8_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- // Delphi 2.x
- {$IFDEF VER90}
- {$DEFINE VER9x}
- {$DEFINE VER9_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- // C++ Builder 1.x
- {$IFDEF VER93}
- {$DEFINE VER9x}
- {$DEFINE VER93_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- // Delphi 3.x
- {$IFDEF VER100}
- {$DEFINE VER10_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- // C++ Builder 3.x
- {$IFDEF VER110}
- {$DEFINE VER11_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- // Delphi 4.x
- {$IFDEF VER120}
- {$DEFINE VER12_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- // C++ Builder 4.x
- {$IFDEF VER125}
- {$DEFINE VER125_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- // Delphi 5.x
- {$IFDEF VER130}
- {$DEFINE VER13_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- // C++ Builder 5.x - Not verified!
- {$IFDEF VER130}
- {$IFDEF BCB}
- {$DEFINE VER135_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- {$ENDIF}
- // Delphi 6.x
- {$IFDEF VER140}
- {$DEFINE VER14_PLUS}
- {$DEFINE VER_OK}
- {$ENDIF}
- // Unknown compiler version - assume D6 compatible
- {$IFNDEF VER_OK}
- {$DEFINE VER14_PLUS}
- {$ELSE}
- {$UNDEF VER_OK}
- {$ENDIF}
- {$IFDEF VER14_PLUS}
- {$DEFINE VER135_PLUS}
- {$ENDIF}
- {$IFDEF VER135_PLUS}
- {$DEFINE VER13_PLUS}
- {$ENDIF}
- {$IFDEF VER13_PLUS}
- {$DEFINE VER125_PLUS}
- {$ENDIF}
- {$IFDEF VER125_PLUS}
- {$DEFINE VER12_PLUS}
- {$ENDIF}
- {$IFDEF VER12_PLUS}
- {$DEFINE VER11_PLUS}
- {$ENDIF}
- {$IFDEF VER11_PLUS}
- {$DEFINE VER10_PLUS}
- {$ENDIF}
- {$IFDEF VER10_PLUS}
- {$DEFINE VER93_PLUS}
- {$ENDIF}
- {$IFDEF VER93_PLUS}
- {$DEFINE VER9_PLUS}
- {$ENDIF}
- {$IFDEF VER9_PLUS}
- {$DEFINE VER8_PLUS}
- {$ENDIF}
- // -----------------------------------------------------------------------------
- // Required compiler directives
- // -----------------------------------------------------------------------------
- {$BOOLEVAL OFF} // Short circuit boolean evaluation.
- {$EXTENDEDSYNTAX ON} // Enable Delphi Pascal extensions.
- {$LONGSTRINGS ON} // String = AnsiString.
- {$ALIGN ON} // Aligned data. Required by COM.
- {$ifdef BCB}
- {$ObjExportAll ON} // Required for C++ Builder
- {$endif}
- // The following are not realy nescessary, but they are good practice.
- {$TYPEDADDRESS ON} // @ operator returns typed pointer.
- {$WRITEABLECONST OFF} // Typed consts are R/O.
- // Disable platform warnings. This library is only supported on Windows.
- {$ifdef VER14_PLUS}
- {$WARN SYMBOL_PLATFORM OFF}
- {$endif}
|