mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Only declare variables for systems which use them.
This commit is contained in:
parent
db4c3c1006
commit
02b69ca57e
1 changed files with 7 additions and 4 deletions
|
@ -1946,13 +1946,18 @@ NSTemporaryDirectory(void)
|
|||
NSFileManager *manager;
|
||||
NSString *tempDirName;
|
||||
NSString *baseTempDirName = nil;
|
||||
BOOL flag;
|
||||
#if !defined(_WIN32)
|
||||
NSDictionary *attr;
|
||||
int perm;
|
||||
int owner;
|
||||
BOOL flag;
|
||||
#if !defined(__ANDROID__)
|
||||
int uid;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
unichar buffer[1024];
|
||||
|
||||
if (GetTempPathW(1024, buffer))
|
||||
{
|
||||
baseTempDirName = [NSString stringWithCharacters: buffer
|
||||
|
@ -1970,8 +1975,6 @@ NSTemporaryDirectory(void)
|
|||
{
|
||||
baseTempDirName = [cacheDir stringByAppendingPathComponent: @"tmp"];
|
||||
}
|
||||
#else
|
||||
int uid;
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue