FileSystem: Android build fix

pull/3342/head
Stenzek 11 months ago
parent 042a2d72f7
commit c9c4307871
No known key found for this signature in database

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

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

Loading…
Cancel
Save