From 49a84cbc4c1318b2290688c5e798dcc63c0bf910 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Thu, 2 Feb 2023 14:59:25 -0800 Subject: Resolve various "no previous declaration" warnings --- Source/Core/Common/FatFsUtil.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Core/Common/FatFsUtil.cpp') diff --git a/Source/Core/Common/FatFsUtil.cpp b/Source/Core/Common/FatFsUtil.cpp index b003e48f5b..c03e16e4a6 100644 --- a/Source/Core/Common/FatFsUtil.cpp +++ b/Source/Core/Common/FatFsUtil.cpp @@ -195,6 +195,7 @@ extern "C" DWORD get_fattime(void) return static_cast(s_callbacks->GetCurrentTimeFAT()); } +#if FF_USE_LFN == 3 // match ff.h; currently unused by Dolphin extern "C" void* ff_memalloc(UINT msize) { return std::malloc(msize); @@ -204,7 +205,9 @@ extern "C" void ff_memfree(void* mblock) { return std::free(mblock); } +#endif +#if FF_FS_REENTRANT extern "C" int ff_cre_syncobj(BYTE vol, FF_SYNC_t* sobj) { *sobj = new std::recursive_mutex(); @@ -229,6 +232,7 @@ extern "C" int ff_del_syncobj(FF_SYNC_t sobj) delete reinterpret_cast(sobj); return 1; } +#endif static const char* FatFsErrorToString(FRESULT error_code) { -- cgit v1.2.3