diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-15 23:53:26 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-15 23:53:26 +0300 |
commit | d402bf299d8ac2974df0c3015377196de8721cad (patch) | |
tree | a9a76dbe28e4fffac202a0a82d789c500f51879b /lib/fatfs/option/ccsbcs.c | |
parent | 0f5bf1aafe0ca073d958f271bd96addc6da8fe10 (diff) | |
download | micropython-d402bf299d8ac2974df0c3015377196de8721cad.tar.gz micropython-d402bf299d8ac2974df0c3015377196de8721cad.zip |
lib/fatfs/option/ccsbcs: Follow uPy optional features model.
Don't error out when options is not what you support, just skip your code.
This allows to make FatFs support properly configurable.
Diffstat (limited to 'lib/fatfs/option/ccsbcs.c')
-rw-r--r-- | lib/fatfs/option/ccsbcs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/fatfs/option/ccsbcs.c b/lib/fatfs/option/ccsbcs.c index 3d1a785b86..e35e15cd91 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
|