refactor: Guard util::quote_argument() with #ifdef __USING_WINDOWS__

The `util::quote_argument()` function is specific to Windows and is used
in code already guarded by `#ifdef __USING_WINDOWS__`.
This commit is contained in:
Hennadii Stepanov 2025-04-24 15:26:25 +01:00
parent b4c3a3f2f5
commit bbb4b84e92
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -182,6 +182,7 @@ using env_vector_t = std::vector<platform_char_t>;
//--------------------------------------------------------------------
namespace util
{
#ifdef __USING_WINDOWS__
inline void quote_argument(const std::wstring &argument, std::wstring &command_line,
bool force)
{
@ -242,7 +243,6 @@ namespace util
}
}
#ifdef __USING_WINDOWS__
inline std::string get_last_error(DWORD errorMessageID)
{
if (errorMessageID == 0)