{astring - defines OpenString and TString for various platforms
           avoids problems with Delphi 2
Copyright (c) 1998-2000 by Bernhard R. Link (2:2476/841.64;brl@gmx.de)
Changes (c) 2001 by Oliver Kopp (2:2471/1464;olly98@users.sourceforge.net)
****************************************************************************
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
****************************************************************************}

(* $Id: astring.pas,v 1.5 2003/03/14 23:04:14 olly98 Exp $ *)

Unit AString;

{$I platform.inc}
{$I mkglobal.inc}

interface

Type TSIndex=Byte; {In diesem Typ sollte Length(TString),sowie pos('A','B')reinpassen }

type

{$IFDEF PPC_Delphi2}
  {$IFDEF LongStrings}
    OpenString=AnsiString;
    TString   =AnsiString;
  {$ELSE}
    OpenString=ShortString;
    TString   =ShortString;
  {$ENDIF}
{$ELSE}
{$IFDEF PPC_FPC}
  OpenString=AnsiString;
  TString   =ShortString;
{$ELSE}
{$IFDEF PPC_VIRTUAL}
  OpenString  = String;
  TString     = String;
{$ELSE}
  OpenString  = String;
  TString     = String;
  AnsiString  = string;
  ShortString = string;
{$ENDIF}
{$ENDIF}
{$ENDIF}

implementation
end.

