mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 18:09:20 +02:00
* replaced nested ifdefs with an elseif sequence
git-svn-id: trunk@31957 -
This commit is contained in:
parent
e15c969cbc
commit
3faf91a270
@ -1465,17 +1465,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
FreeEnvironmentStrings(p);
|
FreeEnvironmentStrings(p);
|
||||||
end;
|
end;
|
||||||
{$else defined(win32) or defined(win64)}
|
{$elseif defined(wince)}
|
||||||
|
|
||||||
{$ifdef wince}
|
|
||||||
Function GetEnv(P:string):Pchar;
|
Function GetEnv(P:string):Pchar;
|
||||||
begin
|
begin
|
||||||
{ WinCE does not have environment strings.
|
{ WinCE does not have environment strings.
|
||||||
Add some way to specify heaptrc options? }
|
Add some way to specify heaptrc options? }
|
||||||
GetEnv:=nil;
|
GetEnv:=nil;
|
||||||
end;
|
end;
|
||||||
{$else wince}
|
{$else}
|
||||||
|
|
||||||
Function GetEnv(P:string):Pchar;
|
Function GetEnv(P:string):Pchar;
|
||||||
{
|
{
|
||||||
Searches the environment for a string with name p and
|
Searches the environment for a string with name p and
|
||||||
@ -1510,8 +1507,7 @@ Begin
|
|||||||
else
|
else
|
||||||
getenv:=nil;
|
getenv:=nil;
|
||||||
end;
|
end;
|
||||||
{$endif wince}
|
{$endif}
|
||||||
{$endif win32}
|
|
||||||
|
|
||||||
procedure LoadEnvironment;
|
procedure LoadEnvironment;
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user