{ *************************************************************************** }
{                                                                             }
{ EControl Syntax Editor SDK                                                  }
{                                                                             }
{ Copyright (c) 2004 - 2007 EControl Ltd., Zaharov Michael                     }
{     www.econtol.ru                                                          }
{     support@econtol.ru                                                      }
{ *************************************************************************** }

// Registered users must uncomment this define
{$DEFINE EC_REG}

// Unicode flag
{.$DEFINE EC_UNICODE}

// Frames registration
{.$DEFINE EC_REGFRAMES}

// Version defines
{$IFDEF LINUX}
  Error: Kylix is not supported
{$ELSE}

  // .Net
  {$IFNDEF WIN32}
    {$DEFINE EC_DOTNET}
  {$ENDIF}

  {$IFDEF VER200}
    {$DEFINE EC_UNICODE}
    {$DEFINE EC_VCL12}
    {$DEFINE EC_VCL12_UP}
    {$DEFINE EC_VCL11_UP}
    {$DEFINE EC_VCL10_UP}
    {$DEFINE EC_VCL9_UP}
    {$DEFINE EC_VCL8_UP}
    {$DEFINE EC_VCL7_UP}
    {$DEFINE EC_VCL6_UP}
    {$DEFINE EC_VCL5_UP}
    {$DEFINE EC_DELPHI}
  {$ELSE}
    // Delphi 2007
    {$IFDEF VER190}
      {$DEFINE EC_VCL11}
      {$DEFINE EC_VCL11_UP}
      {$DEFINE EC_VCL10_UP}
      {$DEFINE EC_VCL9_UP}
      {$DEFINE EC_VCL8_UP}
      {$DEFINE EC_VCL7_UP}
      {$DEFINE EC_VCL6_UP}
      {$DEFINE EC_VCL5_UP}
      {$DEFINE EC_DELPHI}
    {$ELSE}
      // Delphi 2006
      {$IFDEF VER180}
        {$DEFINE EC_VCL10}
        {$DEFINE EC_VCL10_UP}
        {$DEFINE EC_VCL9_UP}
        {$DEFINE EC_VCL8_UP}
        {$DEFINE EC_VCL7_UP}
        {$DEFINE EC_VCL6_UP}
        {$DEFINE EC_VCL5_UP}
        {$DEFINE EC_DELPHI}
      {$ELSE}
        // Delphi 2005
        {$IFDEF VER170}
          {$DEFINE EC_VCL9}
          {$DEFINE EC_VCL9_UP}
          {$DEFINE EC_VCL8_UP}
          {$DEFINE EC_VCL7_UP}
          {$DEFINE EC_VCL6_UP}
          {$DEFINE EC_VCL5_UP}
          {$DEFINE EC_DELPHI}
        {$ELSE}
          // Delphi 8
          {$IFDEF VER160}
            {$DEFINE EC_VCL8}
            {$DEFINE EC_VCL8_UP}
            {$DEFINE EC_VCL7_UP}
            {$DEFINE EC_VCL6_UP}
            {$DEFINE EC_VCL5_UP}
            {$DEFINE EC_DELPHI}
          {$ELSE}
            // Delphi 7
            {$IFDEF VER150}
              {$DEFINE EC_VCL7}
              {$DEFINE EC_VCL7_UP}
              {$DEFINE EC_VCL6_UP}
              {$DEFINE EC_VCL5_UP}
              {$IFDEF BCB}
                {$DEFINE EC_BCB}
              {$ELSE}
                {$DEFINE EC_DELPHI}
              {$ENDIF}
            {$ELSE}
              // Delphi 6
              {$IFDEF VER140}
                {$DEFINE EC_VCL6}
                {$DEFINE EC_VCL6_UP}
                {$DEFINE EC_VCL5_UP}
                {$IFDEF BCB}
                  {$DEFINE EC_BCB}
                {$ELSE}
                  {$DEFINE EC_DELPHI}
                {$ENDIF}
              {$ELSE}
                // Delphi 5
                {$IFDEF VER130}
                  {$DEFINE EC_VCL5}
                  {$DEFINE EC_VCL5_UP}
                  {$IFDEF BCB}
                    {$DEFINE EC_BCB}
                  {$ELSE}
                    {$DEFINE EC_DELPHI}
                  {$ENDIF}
                {$ELSE}
                    Error: Delphi 1,2,3,4 are not supported
                {$ENDIF}
              {$ENDIF}
            {$ENDIF}
          {$ENDIF}
        {$ENDIF}
      {$ENDIF}
    {$ENDIF}
  {$ENDIF}
{$ENDIF}

{$IFDEF EC_DOTNET}
  {$UNDEF EC_UNICODE}
{$ENDIF}

{$IFNDEF EC_DOTNET}
  {$IFNDEF EC_UNICODE}
     {$DEFINE EC_MBCS}
  {$ENDIF}
{$ENDIF}

{$IFDEF EC_DOTNET}
  {$DEFINE EC_STRING_UNICODE}
{$ENDIF}

{$IFDEF EC_VCL12_UP}
  {$DEFINE EC_STRING_UNICODE}
{$ENDIF}

