coassoftwaresystems / delphi-modbus

Delphi ModbusTCP components
MIT License
116 stars 63 forks source link

Update ModBusCompiler.inc #2

Closed Crayon2000 closed 8 years ago

Crayon2000 commented 8 years ago

Hello, since RAD Studio 10 Seattle is now available the ModBusCompiler.inc must be updated. The compiler version is VER300 (http://docwiki.embarcadero.com/RADStudio/Seattle/en/Compiler_Versions)

In my code I have added this temporary fix in order to compile the library:

{$IFDEF VER300}
  {$DEFINE DMB_DELPHI1}
  {$DEFINE DMB_DELPHI2}
  {$DEFINE DMB_DELPHI3}
  {$DEFINE DMB_DELPHI4}
  {$DEFINE DMB_DELPHI5}
  {$DEFINE DMB_DELPHI6}
  {$DEFINE DMB_DELPHI7}
  {$DEFINE DMB_DELPHI2005}
  {$DEFINE DMB_DELPHI2006}
  {$DEFINE DMB_DELPHI2007}
  {$DEFINE DMB_DELPHI2009}
  {$DEFINE DMB_DELPHI2010}
  {$DEFINE DMB_DELPHIXE}
  {$DEFINE DMB_DELPHIXE2}
  {$DEFINE DMB_DELPHIXE3}
  {$DEFINE DMB_DELPHIXE4}
  {$DEFINE DMB_DELPHIXE5}
  {$DEFINE DMB_DELPHIXE6}
  {$DEFINE DMB_DELPHIXE7}
  {$DEFINE DMB_DELPHIXE8}
  {$DEFINE DMB_DELPHIXE8_ONLY}
{$ENDIF}

And in history.txt you have typo (nog):

Version 1.6.4 - June 17 - 2015
==============================
- Fix: TIdModbusServer did nog allow access to the last register of the
  configured range (MaxRegister property).
- Added support for Delphi XE8.
plpolak commented 8 years ago

Fixes (including the Delphi 10 Seattle packages) are in git now (develop branch)