tw25951.pp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. { %fail }
  2. // Mainly used for compiler discovery and turning on global compiler settings.
  3. // This simplifies vwrdefines.inc maintenance, since vwrdefines.inc is per application, and this one is global
  4. // delphi 2009 related
  5. {$if compilerversion>=20} //D2009
  6. {$define Delphiunicode}
  7. {$define has_pointermath}
  8. {$ifend}
  9. {$if compilerversion>=21} // D2010
  10. {$define has_debugthread}
  11. {$define has_bigrtti}
  12. {$ifend}
  13. {$if compilerversion>=22} // DXE
  14. {$define has_keyboard}
  15. {$ifend}
  16. {$if compilerversion>=23} // DXE2..DXE4 (5?)
  17. {$define has_globalformatsettings}
  18. {$define has_extendedTrect} // ?
  19. {$ifend}
  20. {$ifdef has_pointermath}
  21. {$pointermath on} // aka FPC emulation
  22. {$endif}
  23. // most code nowadays probably won't compile under D2009. And even D2009 might be difficult
  24. // due to increased generics usage in 20.
  25. {$ifndef ver150}{$define inlineon}{$endif} // if not D7, then can use inline. Nicer than version.
  26. {$ifndef Delphiunicode}
  27. {$define vstoldstring}
  28. {$else}
  29. {$define newvst}
  30. {$define newcomport}
  31. {$endif}
  32. begin
  33. end.