mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-26 20:51:38 +02:00
Merged revision(s) 31720 from trunk:
* Use /data/local/tmp/ as a fallback temp dir on Android. ........ git-svn-id: branches/fixes_3_0@31920 -
This commit is contained in:
parent
38c0c1c23f
commit
9fe0ec9663
@ -1525,7 +1525,14 @@ begin
|
||||
If (Result='') Then
|
||||
Result:=GetEnvironmentVariable('TMPDIR');
|
||||
if (Result='') then
|
||||
Result:='/tmp/' // fallback.
|
||||
begin
|
||||
// fallback.
|
||||
{$ifdef android}
|
||||
Result:='/data/local/tmp/';
|
||||
{$else}
|
||||
Result:='/tmp/';
|
||||
{$endif android}
|
||||
end;
|
||||
end;
|
||||
if (Result<>'') then
|
||||
Result:=IncludeTrailingPathDelimiter(Result);
|
||||
|
Loading…
Reference in New Issue
Block a user