aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-10 16:55:59 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-10 17:04:29 -0800
commit6860b461a1fc3a910cb64b0b55402685043237dd (patch)
treea839eb60b921306dc334f35f1e69505ab2cf3e3e /toolsrc/include
parent5f39474a17aefc754dcba7d07b2c6ec8a03fc07c (diff)
downloadvcpkg-6860b461a1fc3a910cb64b0b55402685043237dd.tar.gz
vcpkg-6860b461a1fc3a910cb64b0b55402685043237dd.zip
Introduce System::cmd_execute_clean() for sanitized executions
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/pch.h1
-rw-r--r--toolsrc/include/vcpkg_System.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/toolsrc/include/pch.h b/toolsrc/include/pch.h
index 56f24f161..e78f17237 100644
--- a/toolsrc/include/pch.h
+++ b/toolsrc/include/pch.h
@@ -6,6 +6,7 @@
#include <shellapi.h>
#include <Shlobj.h>
#include <winhttp.h>
+#include <process.h>
#include <cassert>
#include <stdexcept>
diff --git a/toolsrc/include/vcpkg_System.h b/toolsrc/include/vcpkg_System.h
index ecb98aba7..71caeed5e 100644
--- a/toolsrc/include/vcpkg_System.h
+++ b/toolsrc/include/vcpkg_System.h
@@ -17,6 +17,13 @@ namespace vcpkg::System
std::string output;
};
+ int cmd_execute_clean(const wchar_t* cmd_line);
+
+ inline int cmd_execute_clean(const std::wstring& cmd_line)
+ {
+ return cmd_execute_clean(cmd_line.c_str());
+ }
+
int cmd_execute(const wchar_t* cmd_line);
inline int cmd_execute(const std::wstring& cmd_line)