diff --git a/src/fatfs/ccsbcs.c b/src/fatfs/ccsbcs.c index 20d696ce..11ca7f18 100644 --- a/src/fatfs/ccsbcs.c +++ b/src/fatfs/ccsbcs.c @@ -493,9 +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 -#endif +#if _TBLDEF && _USE_LFN WCHAR ff_convert ( /* Converted character, Returns zero on error */ @@ -599,3 +597,5 @@ WCHAR ff_wtoupper ( /* Upper converted character */ return tbl_lower[i] ? tbl_upper[i] : chr; } + +#endif // #if _TBLDEF && _USE_LFN