Fixed GCC compilation.

This commit is contained in:
Patrick 2025-05-17 11:14:03 +02:00
parent 48fd006819
commit 45623e5273

View File

@ -39,10 +39,15 @@ fs::path StackedFileSystemAdapter::getHomeFolder()
#if MIJIN_COMPILER == MIJIN_COMPILER_MSVC
#pragma warning(push)
#pragma warning(disable : 4996) // yeah, we're using a deprecated function here, in order to implement another deprecated function ¯\_(ツ)_/¯
#elif MIJIN_COMPILER == MIJIN_COMPILER_GCC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
return adapters_.front()->getHomeFolder();
#if MIJIN_COMPILER == MIJIN_COMPILER_MSVC
#pragma warning(pop)
#elif MIJIN_COMPILER == MIJIN_COMPILER_GCC
#pragma GCC diagnostic pop
#endif
}