Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/sqlite/src/shell_icu_win.c

Issue 172031: Update gyp files and DEPS for icu42 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/sqlite.gyp ('k') | views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/shell_icu_win.c
===================================================================
--- third_party/sqlite/src/shell_icu_win.c (revision 25651)
+++ third_party/sqlite/src/shell_icu_win.c (working copy)
@@ -9,16 +9,21 @@
** Returns 0 on failure, nonzero on success.
** This a hack job of icu_utils.cc:Initialize(). It's Chrome-specific code.
*/
+
+#define ICU_DATA_SYMBOL "icudt" U_ICU_VERSION_SHORT "_dat"
int sqlite_shell_init_icu() {
HMODULE module;
FARPROC addr;
UErrorCode err;
-
- module = LoadLibrary(L"icudt38.dll");
+
+ wchar_t dll_name[12];
+ wsprintf(dll_name, L"icudt%2S.dll", U_ICU_VERSION_SHORT);
+ dll_name[11] = L'\0';
+ module = LoadLibrary(dll_name);
if (!module)
return 0;
- addr = GetProcAddress(module, "icudt38_dat");
+ addr = GetProcAddress(module, ICU_DATA_SYMBOL);
if (!addr)
return 0;
« no previous file with comments | « third_party/sqlite/sqlite.gyp ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698