first attempt at using mason to install packages

[skip ci]
This commit is contained in:
Konstantin Käfer
2014-10-20 17:55:49 +02:00
parent 6bd63c565e
commit 5a87fb337d
8 changed files with 119 additions and 147 deletions

View File

@@ -5,6 +5,11 @@
namespace uv {
std::string cwd() {
#if UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10
char dir[512];
uv_cwd(dir, 512);
return dir;
#else
size_t max = 0;
std::string dir;
do {
@@ -14,6 +19,7 @@ std::string cwd() {
} while (max == dir.size());
dir.resize(max - 1);
return dir;
#endif
}
void deleter::operator()(uv_async_t *async) {