{$DEFINE NRPRO} 
{*******************************************************}
{                                                       }
{       nrCommLib Communication Library for Delphi      }
{       Preprocessor directives                         }
{       Copyright (c) 1997-2011 Roman Novgorodov        }
{       v9.27                                           }
{       last update: 01 Mar 2011                        }
{                                                       }
{       e-mail:noro@deepsoftware.com                    }
{       DeepSoftware                                    }
{       http://www.deepsoftware.com/                    }
{                                                       }
{*******************************************************}

{$DEFINE NR_WITH_CONTROLS}

{$B-} 

{DEFINE NRCAPI}

{Directive build the shareware version}
{DEFINE TRIAL}

{Directive build the debug version}
{DEFINE DEBUGSELF}

{DEFINE NRLPT}

{IFDEF TRIAL}
{DEFINE NRPRO} // the trial version is always PRO ...
{ENDIF}

{$IFDEF VER100}         { if Delphi3 ...           }
  {$DEFINE GEN3}        { then define Generation 3 }
  {$DEFINE DELPHI}
  {$DEFINE NOOVERLOAD}
{$ENDIF}

{$IFDEF VER110}         { if CBuilder3 ...         }
  {$DEFINE GEN3}        { then define Generation 3 }
  {$DEFINE BCB}
  {$DEFINE NOOVERLOAD}
{$ENDIF}

{$IFDEF VER120}         { if Delphi4 ...           }
  {$DEFINE GEN4}        { then define Generation 4 }
  {$DEFINE DELPHI}
  {$DEFINE NOOVERLOAD}
{$ENDIF}

{$IFDEF VER125}         { if CBuilder4 ...         }
  {$DEFINE GEN4}        { then define Generation 4 }
  {$DEFINE BCB}
  {$DEFINE NOOVERLOAD}
{$ENDIF}

{$IFDEF VER130}         { if Delphi5 ...         }
  {$DEFINE GEN5}        { then define Generation 5 }
  {$DEFINE DELPHI}
  {$DEFINE NOOVERLOAD}
{$ENDIF}

{$IFDEF VER135}         { if CBuilder5 ...         }
  {$DEFINE GEN5}        { then define Generation 5 }
  {$DEFINE BCB}
  {$DEFINE NOOVERLOAD}
{$ENDIF}

{$IFDEF VER140}         { if Delphi6 ...         }
  {$DEFINE GEN6}        { then define Generation 6 }
  {$DEFINE DELPHI}
{$ENDIF}

{$IFDEF LINUX}         { if Kylix ...         }
  {$DEFINE GEN6}       { then define Generation 6 }
  {$DEFINE KYLIX}
{$ENDIF}

{$IFDEF VER150}         { if Delphi7 ...         }
  {$DEFINE GEN6}        { then define Generation 6 }
  {$DEFINE GEN7}        { then define Generation 7 }
  {$DEFINE DELPHI}
{$ENDIF}

{$IFDEF VER170}         { if Delphi9 ...         }
  {$DEFINE GEN6}        { then define Generation 6 }
  {$DEFINE GEN7}        { then define Generation 7 }
  {$DEFINE DELPHI}
{$ENDIF}

{$IFDEF VER180}         { if Delphi10 ...         }
  {$DEFINE GEN6}        { then define Generation 6 }
  {$DEFINE GEN7}        { then define Generation 7 }
  {$DEFINE DELPHI}
{$ENDIF}

{$IFDEF VER200}         { if Delphi 2009 ...       }
  {$DEFINE GEN6}        { then define Generation 6 }
  {$DEFINE GEN7}        { then define Generation 7 }
  {$DEFINE DELPHI}
{$ENDIF}

{$IFDEF VER210}         { if Delphi 2010 ...       }
  {$DEFINE GEN6}        { then define Generation 6 }
  {$DEFINE GEN7}        { then define Generation 7 }
  {$DEFINE DELPHI}
{$ENDIF}

{$IFDEF VER220}         { if Delphi 2011 ...       }
  {$DEFINE GEN6}        { then define Generation 6 }
  {$DEFINE GEN7}        { then define Generation 7 }
  {$DEFINE DELPHI}
{$ENDIF}

{$IFDEF VER230}         { if Delphi 2012 (XE2) ...   }
  {$DEFINE GEN6}        { then define Generation 6 }
  {$DEFINE GEN7}        { then define Generation 7 }
  {$DEFINE DELPHI}
{$ENDIF}

{$IFDEF GEN7}         { skip unsafe warinings }
  {$warn UNSAFE_TYPE off}
  {$warn UNSAFE_CAST off}
  {$warn UNSAFE_CODE off}
  {$WARN SYMBOL_PLATFORM OFF}
  {$WARN SYMBOL_DEPRECATED OFF}
{$ENDIF}                


