diff --git a/lib/fatfs/option/ccsbcs.c b/lib/fatfs/option/ccsbcs.c index 3d1a785b86a2b4490973cb1657fb4612bbb8b3c2..e35e15cd91ccb6fe8a5b80050dc5826046bf5f9d 100644 --- a/lib/fatfs/option/ccsbcs.c +++ b/lib/fatfs/option/ccsbcs.c @@ -493,10 +493,7 @@ const WCHAR Tbl[] = { /* CP1258(0x80-0xFF) to Unicode conversion table */ #endif -#if !_TBLDEF || !_USE_LFN -#error This file is not needed in current configuration. Remove from the project. -#endif - +#if _TBLDEF && _USE_LFN WCHAR ff_convert ( /* Converted character, Returns zero on error */ WCHAR chr, /* Character code to be converted */ @@ -571,3 +568,5 @@ WCHAR ff_wtoupper ( /* Upper converted character */ return tbl_lower[i] ? tbl_upper[i] : chr; } + +#endif