mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 14:19:31 +02:00
* dos compile fixes
git-svn-id: trunk@5111 -
This commit is contained in:
parent
5c96c98aa2
commit
3997ef0253
@ -34,6 +34,9 @@ interface
|
||||
{$ifdef win32}
|
||||
Windows,
|
||||
{$endif win32}
|
||||
{$if defined(go32v2) or defined(watcom)}
|
||||
Dos,
|
||||
{$endif}
|
||||
{$IFNDEF USE_FAKE_SYSUTILS}
|
||||
SysUtils,
|
||||
{$ELSE}
|
||||
@ -1037,12 +1040,7 @@ implementation
|
||||
GetShortName:=hs2;
|
||||
end;
|
||||
{$endif}
|
||||
{$ifdef go32v2}
|
||||
hs:=n;
|
||||
if Dos.GetShortName(hs) then
|
||||
GetShortName:=hs;
|
||||
{$endif}
|
||||
{$ifdef watcom}
|
||||
{$if defined(go32v2) or defined(watcom)}
|
||||
hs:=n;
|
||||
if Dos.GetShortName(hs) then
|
||||
GetShortName:=hs;
|
||||
|
@ -29,6 +29,9 @@ interface
|
||||
{$ifdef win32}
|
||||
windows,
|
||||
{$endif}
|
||||
{$ifdef os2}
|
||||
dos,
|
||||
{$endif os2}
|
||||
{$ifdef hasunix}
|
||||
Baseunix,unix,
|
||||
{$endif}
|
||||
@ -479,7 +482,7 @@ implementation
|
||||
{$ifdef GETENVOK}
|
||||
{$undef GETENVOK}
|
||||
{$else}
|
||||
GetEnvPchar:=StrPNew(Dos.Getenv(envname));
|
||||
GetEnvPchar:=StrPNew(GetEnvironmentVariable(envname));
|
||||
{$endif}
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user