{
    This file is part of QuickLib: https://github.com/exilon/QuickLib

    QuickLibs. Copyright (C) 2019 Kike Pérez
      Exilon - https://www.exilon.es

     ***************************************************************************

      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.

     ***************************************************************************
}

{$ifdef FPC}
  {$MODE DELPHI}

  {$INLINE ON}
  {$define HASINLINE}

  {$ifdef LINUX}
    {$define FPCLINUX}
  {$endif}

  {$ifdef ANDROID}
    {$define LINUX}
  {$endif}

  {$ifdef VER2_7}
    {$define ISFPC27}
  {$endif}

  {$ifdef VER3_0}
    {$define ISFPC27}
    {$define ISFPC30}
  {$endif}

  {$ifdef VER3_1}
    {$define ISFPC27}
    {$define ISFPC30}
  {$endif}

  {$ifdef FPC_REQUIRES_PROPER_ALIGNMENT}
    {$define FPC_ENUMHASINNER}
  {$endif}

  {$ifdef FPC_HAS_MANAGEMENT_OPERATORS}
    {$define ISDELPHI2006ANDUP}
  {$endif FPC_HAS_MANAGEMENT_OPERATORS}

{$else FPC}

  {$ifdef CONDITIONALEXPRESSIONS} //Delphi 6 or newer
    {$define HASINTERFACERTTI} //interface RTTI (not FPC)
    {$ifndef LINUX}
      {$ifdef VER140}
        {$define DELPHI6_UP} //Delphi 6 or newer
      {$else}
        {$define DELPHI7_UP} //Delphi 7 or newer
      {$endif}
    {$endif LINUX}
    {$if CompilerVersion >= 17}
      {$define DELPHI2005_UP} //Delphi 2005 or newer
    {$ifend}
    {$if CompilerVersion >= 18}
      {$define DELPHI2006_UP} //Delphi 2006 or newer
      {$define HASINLINE}
    {$ifend}
    {$if CompilerVersion > 18}
      {$define DELPHI2007_UP} //Delphi 2007 or newer
    {$ifend}
    {$if CompilerVersion = 20}
      {$define DELPHI2009_UP} //Delphi 2009
    {$ifend}
    {$if CompilerVersion >= 21.0} //Delphi 2010
      {$define DELPHI2010_UP}
      {$define FPC_OR_UNICODE}
    {$ifend}
    {$if CompilerVersion >= 22.0} //Delphi XE
      {$define DELPHIXE_UP}
    {$ifend}
    {$if CompilerVersion >= 23.0} //Delphi XE2
      {$define DELPHIXE2_UP}
    {$ifend}
    {$if CompilerVersion >= 24.0} //Delphi XE3
      {$define DELPHIXE3_UP}
    {$ifend}
    {$if CompilerVersion >= 25.0} //Delphi XE4
      {$define DELPHIXE4_UP}
    {$ifend}
    {$if CompilerVersion >= 26.0} //Delphi XE5
      {$define DELPHIXE5_UP}
    {$ifend}
    {$if CompilerVersion >= 27.0} //Delphi XE6
      {$define DELPHIXE6_UP}
    {$ifend}
    {$if CompilerVersion >= 28.0} //Delphi XE7
      {$define DELPHIXE7_UP}
    {$ifend}
    {$if CompilerVersion >= 29.0} //Delphi XE8
      {$define DELPHIXE8_UP}
    {$ifend}
    {$if CompilerVersion >= 30.0} //Delphi XE10 Seattle
      {$define DELPHIRX10_UP}
	  {$define DELPHISEATTLE_UP}
    {$ifend}
    {$if CompilerVersion >= 31.0} //Delphi RX10.1 Berlin
      {$define DELPHIRX101_UP}
	    {$define DELPHIBERLIN_UP}
    {$ifend}
    {$if CompilerVersion >= 32.0} //Delphi RX10.2 Tokyo
      {$define DELPHIRX102_UP}
	    {$define DELPHITOKYO_UP}
      {$ifdef LINUX}
        {$define DELPHILINUX}
      {$ifend}
    {$ifend}
    {$if CompilerVersion >= 33.0} //Delphi RX10.3 Rio
      {$define DELPHIRX103_UP}
	    {$define DELPHIRIO_UP}
    {$ifend}
  {$else}
    //Delphi 5 or older
    {$define DELPHI6OROLDER}
    {$define DELPHI5OROLDER}
    {$define DELPHI5ORFPC}
    {$define MSWINDOWS}
  {$endif}

{$endif FPC}

{$ifdef VER150}
  {$WARN SYMBOL_DEPRECATED OFF}
  {$WARN UNSAFE_TYPE OFF}
  {$WARN UNSAFE_CODE OFF}
  {$WARN UNSAFE_CAST OFF}
{$ENDIF}

{$ifdef CONDITIONALEXPRESSIONS}  //Delphi 6 or newer
  {.$WARN SYMBOL_PLATFORM OFF}
  {.$WARN UNIT_PLATFORM OFF}
{$endif}

{.$define SHOW_ENVIRONMENTPATH_ERRORS}


