diff --git a/tiny_gltf.h b/tiny_gltf.h index d6ea795..4f8fcd2 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -2597,7 +2597,7 @@ bool FileExists(const std::string &abs_filename, void *) { } #else #ifdef _WIN32 -#if defined(_MSC_VER) || defined(__GLIBCXX__) +#if defined(_MSC_VER) || defined(__GLIBCXX__) || defined(_LIBCPP_VERSION) FILE *fp = nullptr; errno_t err = _wfopen_s(&fp, UTF8ToWchar(abs_filename).c_str(), L"rb"); if (err != 0) {