Fixed GCC compilation.
This commit is contained in:
parent
48fd006819
commit
45623e5273
@ -39,10 +39,15 @@ fs::path StackedFileSystemAdapter::getHomeFolder()
|
|||||||
#if MIJIN_COMPILER == MIJIN_COMPILER_MSVC
|
#if MIJIN_COMPILER == MIJIN_COMPILER_MSVC
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
#pragma warning(disable : 4996) // yeah, we're using a deprecated function here, in order to implement another deprecated function ¯\_(ツ)_/¯
|
#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
|
#endif
|
||||||
return adapters_.front()->getHomeFolder();
|
return adapters_.front()->getHomeFolder();
|
||||||
#if MIJIN_COMPILER == MIJIN_COMPILER_MSVC
|
#if MIJIN_COMPILER == MIJIN_COMPILER_MSVC
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
|
#elif MIJIN_COMPILER == MIJIN_COMPILER_GCC
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user