* dos compile fixes

git-svn-id: trunk@5111 -
This commit is contained in:
peter 2006-10-31 09:08:32 +00:00
parent 5c96c98aa2
commit 3997ef0253
2 changed files with 8 additions and 7 deletions

View File

@ -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;

View File

@ -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;