Android patch: Include uconfig_local.h

Enable use of uconfig_local.h during compilation of ICU4C,
which is used by libandroidicu library.

libicuuc uses uconfig_local.h to safeguard a condition during compile time.

In libandroidicu the header file defines a few macros to configure
icu4c behaviour such as adding suffix to C functions.

This commit squashes the following three commits:

1. http://r.android.com/838352 -- Android patch: Include uconfig_local.h
2. http://r.android.com/852490 -- Android Patch: Include uconfig_local.h only when building with soong
3. http://r.android.com/854804 -- Android Patch: Fix the comment for UCONFIG_USE_LOCAL

Test: n/a
Change-Id: I96962d6f8a47c155f9b59cc5e3e9a0e5f4c5b88d
diff --git a/icu4c/source/common/unicode/uconfig.h b/icu4c/source/common/unicode/uconfig.h
index bbc232d..80bc00d 100644
--- a/icu4c/source/common/unicode/uconfig.h
+++ b/icu4c/source/common/unicode/uconfig.h
@@ -17,6 +17,19 @@
 #ifndef __UCONFIG_H__
 #define __UCONFIG_H__
 
+// Android patch: Hard code UCONFIG_USE_LOCAL=1 so that ICU will use
+// uconfig_local.h, which allows us to disable use of non-stable and
+// internal APIs in Android's libandroidicu shim. For more information
+// on this pre-processor variable see the comments below.
+// Also, see http://b/117094880
+
+// To keep updateicudata.py (which uses the ICU make process) working,
+// uconfig_local.h is only included when ANDROID is defined. When
+// ANDROID is defined, the code is being built by Android's platform
+// build system(s).
+#ifdef ANDROID
+#define UCONFIG_USE_LOCAL 1
+#endif
 
 /*!
  * \file