mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 18:49:27 +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}
|
{$ifdef win32}
|
||||||
Windows,
|
Windows,
|
||||||
{$endif win32}
|
{$endif win32}
|
||||||
|
{$if defined(go32v2) or defined(watcom)}
|
||||||
|
Dos,
|
||||||
|
{$endif}
|
||||||
{$IFNDEF USE_FAKE_SYSUTILS}
|
{$IFNDEF USE_FAKE_SYSUTILS}
|
||||||
SysUtils,
|
SysUtils,
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
@ -1037,12 +1040,7 @@ implementation
|
|||||||
GetShortName:=hs2;
|
GetShortName:=hs2;
|
||||||
end;
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
{$ifdef go32v2}
|
{$if defined(go32v2) or defined(watcom)}
|
||||||
hs:=n;
|
|
||||||
if Dos.GetShortName(hs) then
|
|
||||||
GetShortName:=hs;
|
|
||||||
{$endif}
|
|
||||||
{$ifdef watcom}
|
|
||||||
hs:=n;
|
hs:=n;
|
||||||
if Dos.GetShortName(hs) then
|
if Dos.GetShortName(hs) then
|
||||||
GetShortName:=hs;
|
GetShortName:=hs;
|
||||||
|
@ -29,6 +29,9 @@ interface
|
|||||||
{$ifdef win32}
|
{$ifdef win32}
|
||||||
windows,
|
windows,
|
||||||
{$endif}
|
{$endif}
|
||||||
|
{$ifdef os2}
|
||||||
|
dos,
|
||||||
|
{$endif os2}
|
||||||
{$ifdef hasunix}
|
{$ifdef hasunix}
|
||||||
Baseunix,unix,
|
Baseunix,unix,
|
||||||
{$endif}
|
{$endif}
|
||||||
@ -479,7 +482,7 @@ implementation
|
|||||||
{$ifdef GETENVOK}
|
{$ifdef GETENVOK}
|
||||||
{$undef GETENVOK}
|
{$undef GETENVOK}
|
||||||
{$else}
|
{$else}
|
||||||
GetEnvPchar:=StrPNew(Dos.Getenv(envname));
|
GetEnvPchar:=StrPNew(GetEnvironmentVariable(envname));
|
||||||
{$endif}
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user