aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:56:25 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:56:25 +0000
commit070b078126dc7e19420fd769ace21e7f9643f623 (patch)
tree872cc26602b8994b786ab4afbae2d28890ac62cf
parentb8024d500c044d67c118af3da2e21965439ee93d (diff)
parentd25449ff09cdbac4a5797c767af18cd584a20bc9 (diff)
downloadmtools-android14-mainline-extservices-release.tar.gz
Snap for 10453563 from d25449ff09cdbac4a5797c767af18cd584a20bc9 to mainline-extservices-releaseaml_ext_341620040aml_ext_341518010aml_ext_341414010aml_ext_341317010aml_ext_341131030aml_ext_341027030android14-mainline-extservices-release
Change-Id: I6438a1341e2886a51ed1faa79f49f72bfb08a07c
-rw-r--r--codepages.c9
-rw-r--r--config.h5
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;
diff --git a/config.h b/config.h
index 582e419..b9223b9 100644
--- a/config.h
+++ b/config.h
@@ -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