remove uv.h dependency from header files

This commit is contained in:
Konstantin Käfer
2014-08-12 11:45:30 +02:00
parent e4c311a864
commit 6f80264291
21 changed files with 210 additions and 186 deletions

19
src/util/uv.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include <mbgl/util/uv.hpp>
#include <uv.h>
namespace uv {
std::string cwd() {
size_t max = 0;
std::string dir;
do {
max += 256;
dir.resize(max);
uv_cwd(const_cast<char *>(dir.data()), &max);
} while (max == dir.size());
dir.resize(max - 1);
return dir;
}
}