aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorChun Kuan Lee <ken2812221@gmail.com>2018-08-05 16:38:25 +0000
committerChun Kuan Lee <ken2812221@gmail.com>2018-09-30 15:08:16 +0800
commit380c843217139b180457889699c65b37ae3b4a87 (patch)
tree14f563548a07e34860364c8046e83ef8671730a9 /src/util.h
parent9b8bb5f1402a07736be7d649c2253253672d04e1 (diff)
utils: Convert Windows args to utf-8 string
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index f119385e48..fa6d2cd489 100644
--- a/src/util.h
+++ b/src/util.h
@@ -29,6 +29,7 @@
#include <stdint.h>
#include <string>
#include <unordered_set>
+#include <utility>
#include <vector>
#include <boost/thread/condition_variable.hpp> // for boost::thread_interrupted
@@ -361,6 +362,21 @@ inline void insert(std::set<TsetT>& dst, const Tsrc& src) {
dst.insert(src.begin(), src.end());
}
+#ifdef WIN32
+class WinCmdLineArgs
+{
+public:
+ WinCmdLineArgs();
+ ~WinCmdLineArgs();
+ std::pair<int, char**> get();
+
+private:
+ int argc;
+ char** argv;
+ std::vector<std::string> args;
+};
+#endif
+
} // namespace util
#endif // BITCOIN_UTIL_H