Conditional Compilation sgcWebSockets

sgcWebSockets library has a configuration file located in source folder where contains all conditional compilations. This file is sgcVer.inc.

If you open this file, you will see there are lots of conditional defines, basically for every Delphi / C++ Builder version, there are a bunch of conditional defines. For example, for Rad Studio 10.3 there are the following:


{$IFDEF VER330} { Delphi  10.3 }
  {$DEFINE D2006}
  {$DEFINE D2007}
  {$DEFINE D2009}
  {$DEFINE D2010}
  {$DEFINE DXE}
  {$DEFINE DXE2}
  {$DEFINE DXE3}  
  {$DEFINE DXE4} 
  {$DEFINE DXE5} 
  {$DEFINE DXE6} 
  {$DEFINE DXE7} 
  {$DEFINE DXE8} 
  {$DEFINE D10} 
  {$DEFINE D10_1}
  {$DEFINE D10_2}
  {$DEFINE D10_3}

  {$DEFINE INDY10_1}
  {$DEFINE INDY10_2}
  {$DEFINE INDY10_5_5}
  {$DEFINE INDY10_5_7}
  {$DEFINE INDY10_6}
  {$DEFINE INDY10_6_2_5366}
  
  {$IFNDEF BCB}
    {$IFNDEF MACOS}
    {$IFNDEF ANDROID}
      {.$DEFINE IWIX}
      {.$DEFINE IWXI}
      {.$DEFINE IWXIV}  
    {$ENDIF}
    {$ENDIF}

    {$IFNDEF NEXTGEN}
      {$DEFINE SGC_JSON_INTF}
    {$ENDIF}
  {$ENDIF}
{$ENDIF} 

Compiler Blocks

First directives are referred to IDE version, each IDE version has his own compiler. Usually it's not recommended to change these.

Then, there are some compilers which apply to Indy version. By default, sgcVer.inc is configured to work with Indy version provided with Rad Studio, but sometimes, is useful update Indy library to latest version. Here you can customize which is your Indy version and comment or uncomment these compiler directives.

Finally there are some compiler directives for Intraweb. In fact, Intraweb has been deprecated in later versions and by default is not needed, but if you want use Intraweb components, you can here configure which is your Intraweb version.

×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

Benss Fingerprint Review
sgcWebSockets 4.3.2

Related Posts