diff options
author | Dmitrii Merkurev <dimorinny@google.com> | 2022-11-18 17:47:13 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-11-18 17:47:13 +0000 |
commit | 98199f2a18073acbbdb08ffab1e0a6f0e468b1ef (patch) | |
tree | 872cc26602b8994b786ab4afbae2d28890ac62cf | |
parent | 9b632a08d9b1d4aebda90a9a3a397ed1e7ab68af (diff) | |
parent | 32c51e05eb961f3d2b55ebdab7556b9cbae09e33 (diff) | |
download | mtools-main-16k.tar.gz |
Introduce mock codepages config option for mtools am: 32c51e05ebmain-16k
Original change: https://android-review.googlesource.com/c/platform/external/mtools/+/2307102
Change-Id: I81a3dac19a81c29e997fe38206afa2bf99e215d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | codepages.c | 9 | ||||
-rw-r--r-- | config.h | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/codepages.c b/codepages.c index ecb99ee..944131c 100644 --- a/codepages.c +++ b/codepages.c @@ -20,6 +20,13 @@ #ifndef HAVE_ICONV_H #include "codepage.h" +#ifdef USE_MOCK_CODEPAGES +Codepage_t codepages[]= { + { 850, + "" + }, +}; +#else Codepage_t codepages[]= { { 437, "ÇüéâäàåçêëèïîìÄÅ" @@ -113,6 +120,8 @@ Codepage_t codepages[]= { { 0 } }; +#endif + #else /* Should down ISO C forbids an empty translation unit warning [-Wpedantic]: */ typedef int make_iso_compilers_happy; @@ -53,7 +53,10 @@ #define HAVE_HTONS 1 /* Define to 1 if you have the <iconv.h> header file. */ -#define HAVE_ICONV_H 1 +/* #undef HAVE_ICONV_H */ + +/* Define to 1 if you want to use mock code pages. */ +#define USE_MOCK_CODEPAGES 1 /* Define to 1 if you have the <inttypes.h> header file. */ #define HAVE_INTTYPES_H 1 |