File tree 1 file changed +4
-5
lines changed
python4lazarus/Sources/Core 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3624,19 +3624,18 @@ procedure TPythonInterface.CheckPython;
3624
3624
raise Exception.Create(' Python is not properly initialized' );
3625
3625
end ;
3626
3626
3627
+ // https://github.com/Alexey-T/Python-for-Lazarus/issues/16
3627
3628
function TPythonInterface.GetUnicodeTypeSuffix : String;
3628
3629
begin
3629
3630
if (fMajorVersion > 3 ) or ((fMajorVersion = 3 ) and (fMinorVersion >= 3 )) then
3630
3631
Result := ' '
3631
3632
else
3632
3633
if APIVersion >= 1011 then
3633
- // https://github.com/Alexey-T/Python-for-Lazarus/issues/16
3634
3634
Result :=
3635
- { $ifdef windows} ' UCS2'
3635
+ { $if defined(windows) or defined(darwin) or defined(solaris)}
3636
+ ' UCS2'
3636
3637
{ $else}
3637
- { $ifdef darwin} ' UCS2'
3638
- { $else} ' UCS4'
3639
- { $endif}
3638
+ ' UCS4'
3640
3639
{ $endif}
3641
3640
else
3642
3641
Result := ' ' ;
You can’t perform that action at this time.
0 commit comments