From 68be85c008d2a50e21e783a21f5bc782fbf5f733 Mon Sep 17 00:00:00 2001 From: Martin Guy Date: Sun, 20 Mar 2011 02:10:44 +0100 Subject: [PATCH] Allow compilation when _USE_LFN = 0 or _CODE_PAGE = 1 (in src/fatfs/ffconf.h) --- src/fatfs/ccsbcs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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