From bbb4b84e9223deeec671f6bd6992add1e6bde20e Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 24 Apr 2025 15:26:25 +0100 Subject: [PATCH] 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__`. --- subprocess.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprocess.hpp b/subprocess.hpp index aa26c02..826cd9c 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -182,6 +182,7 @@ using env_vector_t = std::vector; //-------------------------------------------------------------------- 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)