fpspreadsheet: Fix compilation with Laz 1.0/2.6.0
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6182 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
383d872db7
commit
6edaaa7b11
@ -113,7 +113,11 @@ var
|
||||
PassHash: Word = 0;
|
||||
begin
|
||||
// we are needed to work with single byte character.
|
||||
{$IF fpc_fullversion >= 3000000 }
|
||||
Password:= UTF8ToWinCP(APassword);
|
||||
{$ELSE}
|
||||
Password := UTF8ToSys(APassword);
|
||||
{$ENDIF}
|
||||
PassLen := Length(Password);
|
||||
|
||||
if PassLen = 0 then
|
||||
|
@ -10,6 +10,7 @@
|
||||
unit fpsTypes;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
{$include fps.inc}
|
||||
|
||||
interface
|
||||
|
||||
@ -276,6 +277,10 @@ type
|
||||
{@@ Describes which formatting fields are active }
|
||||
TsUsedFormattingFields = set of TsUsedFormattingField;
|
||||
|
||||
{$IFDEF NO_RAWBYTESTRING}
|
||||
RawByteString = ansistring;
|
||||
{$ENDIF}
|
||||
|
||||
const
|
||||
{@@ Codes for curreny format according to FormatSettings.CurrencyFormat:
|
||||
"C" = currency symbol, "V" = currency value, "S" = space character
|
||||
|
@ -42,4 +42,10 @@
|
||||
This is not yet available in fpc 2.6.0 }
|
||||
{.$DEFINE FPS_PTRINT}
|
||||
|
||||
{ RawByteString only has been available since fpc 3.0
|
||||
Activate this define to replace RawByteStringt by an ansistring }
|
||||
{.$DEFINE NO_RAWBYTESTRING}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user