FileSystem: Android build fix

This commit is contained in:
Stenzek 2024-12-05 23:51:36 +10:00
parent 042a2d72f7
commit c9c4307871
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -2788,6 +2788,10 @@ bool FileSystem::SetPathCompression(const char* path, bool enable)
return false;
}
#endif
#ifndef _WIN32
static bool SetLock(int fd, bool lock, bool block, Error* error)
{
// We want to lock the whole file.

View File

@ -1396,7 +1396,7 @@ bool dyn_libs::OpenSpirvCross(Error* error)
if (s_spirv_cross_library.IsOpen())
return true;
#ifdef _WIN32
#if defined(_WIN32) || defined(__ANDROID__)
// SPVC's build on Windows doesn't spit out a versioned DLL.
const std::string libname = DynamicLibrary::GetVersionedFilename("spirv-cross-c-shared");
#else