fs/StandardDirectory: update #ifdef for GetEnvPath()

Fixes regression from a38eabc8bc
This commit is contained in:
Max Kellermann 2022-11-28 19:04:29 +01:00
parent cfbd751742
commit 3103e8d719
1 changed files with 5 additions and 1 deletions

View File

@ -145,7 +145,7 @@ GetStandardDir(int folder_id) noexcept
#endif #endif
#ifdef USE_XDG #if !defined(_WIN32) && !defined(ANDROID)
[[gnu::pure]] [[gnu::pure]]
static Path static Path
@ -179,6 +179,10 @@ GetExistingEnvDirectory(const char *name) noexcept
return nullptr; return nullptr;
} }
#endif
#ifdef USE_XDG
static bool static bool
ParseConfigLine(std::string_view line, std::string_view dir_name, ParseConfigLine(std::string_view line, std::string_view dir_name,
AllocatedPath &result_dir) noexcept AllocatedPath &result_dir) noexcept