msys2 : fix build

This commit is contained in:
Georgi Gerganov
2021-02-27 09:47:13 -08:00
parent 8a930b7a96
commit 5f2bfd09ba
6 changed files with 23 additions and 4 deletions

View File

@@ -47,9 +47,9 @@ std::vector<char> readFile(const char* filename) {
}
std::string getBinaryPath() {
#ifdef __EMSCRIPTEN__
#if defined(__EMSCRIPTEN__) || defined(_WIN32)
return "";
#endif
#else
std::string result;
void* p = reinterpret_cast<void*>(dummy);
@@ -73,4 +73,5 @@ std::string getBinaryPath() {
}
return result;
#endif
}