mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 15:49:27 +02:00
* Use /data/local/tmp/ as a fallback temp dir on Android.
git-svn-id: trunk@31720 -
This commit is contained in:
parent
f9f8c931f3
commit
6f15b5bf63
@ -1484,7 +1484,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