mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-05 04:46:21 -04:00
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:
parent
b4c3a3f2f5
commit
bbb4b84e92
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user