mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Use the Posix TMPDIR logic, as D can be used from the command-line too on Android.
This commit is contained in:
parent
008064792c
commit
ee4036a53a
1 changed files with 0 additions and 5 deletions
|
@ -4353,11 +4353,6 @@ string tempDir() @trusted
|
||||||
DWORD len = GetTempPathW(buf.length, buf.ptr);
|
DWORD len = GetTempPathW(buf.length, buf.ptr);
|
||||||
if (len) cache = buf[0 .. len].to!string;
|
if (len) cache = buf[0 .. len].to!string;
|
||||||
}
|
}
|
||||||
else version(Android)
|
|
||||||
{
|
|
||||||
// Don't check for a global temporary directory as
|
|
||||||
// Android doesn't have one.
|
|
||||||
}
|
|
||||||
else version(Posix)
|
else version(Posix)
|
||||||
{
|
{
|
||||||
import std.process : environment;
|
import std.process : environment;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue