Fix icu link warning on Windows

BUG=325982
TEST=run builds with and without component=shared_library and verify no linker warning are emitted. Run net_unittests --gtest_filter=NetUtil*.*
R=jshin@chromium.org

Review URL: https://codereview.chromium.org/117663003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@243425 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/README.chromium b/README.chromium
index bff3bc7..7b7dcb9 100644
--- a/README.chromium
+++ b/README.chromium
@@ -299,3 +299,6 @@
 26. Add BreakIterator::getRuleStatus
     - patches/breakiterator.patch
     - Copy and paste BreakIterator::getRuleStatus API from ICU 52
+
+27. Change export of U_ICUDATA_ENTRY_POINT from U_IMPORT to U_EXPORT.
+    - patches/declspec.patch
diff --git a/patches/declspec.patch b/patches/declspec.patch
new file mode 100644
index 0000000..a0ad086
--- /dev/null
+++ b/patches/declspec.patch
@@ -0,0 +1,13 @@
+Index: source/common/unicode/utypes.h
+===================================================================
+--- source/common/unicode/utypes.h	(revision 241384)
++++ source/common/unicode/utypes.h	(working copy)
+@@ -448,7 +448,7 @@
+ #define U_IO_API
+ #define U_TOOLUTIL_API
+ #elif defined(U_COMMON_IMPLEMENTATION)
+-#define U_DATA_API     U_IMPORT
++#define U_DATA_API     U_EXPORT
+ #define U_COMMON_API   U_EXPORT
+ #define U_I18N_API     U_IMPORT
+ #define U_LAYOUT_API   U_IMPORT
diff --git a/source/common/unicode/utypes.h b/source/common/unicode/utypes.h
index beb931b..daea3c6 100644
--- a/source/common/unicode/utypes.h
+++ b/source/common/unicode/utypes.h
@@ -448,7 +448,7 @@
 #define U_IO_API
 #define U_TOOLUTIL_API
 #elif defined(U_COMMON_IMPLEMENTATION)
-#define U_DATA_API     U_IMPORT
+#define U_DATA_API     U_EXPORT
 #define U_COMMON_API   U_EXPORT
 #define U_I18N_API     U_IMPORT
 #define U_LAYOUT_API   U_IMPORT