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

Side by Side Diff: base/icu_util.cc

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/gfx/rect.cc ('k') | base/logging.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #endif 9 #endif
10 10
(...skipping 13 matching lines...) Expand all
24 #define ICU_UTIL_DATA_FILE 0 24 #define ICU_UTIL_DATA_FILE 0
25 #define ICU_UTIL_DATA_SHARED 1 25 #define ICU_UTIL_DATA_SHARED 1
26 #define ICU_UTIL_DATA_STATIC 2 26 #define ICU_UTIL_DATA_STATIC 2
27 27
28 #ifndef ICU_UTIL_DATA_IMPL 28 #ifndef ICU_UTIL_DATA_IMPL
29 29
30 #if defined(OS_WIN) 30 #if defined(OS_WIN)
31 #define ICU_UTIL_DATA_IMPL ICU_UTIL_DATA_SHARED 31 #define ICU_UTIL_DATA_IMPL ICU_UTIL_DATA_SHARED
32 #elif defined(OS_MACOSX) 32 #elif defined(OS_MACOSX)
33 #define ICU_UTIL_DATA_IMPL ICU_UTIL_DATA_STATIC 33 #define ICU_UTIL_DATA_IMPL ICU_UTIL_DATA_STATIC
34 #elif defined(OS_LINUX) 34 #elif defined(OS_LINUX) || defined(OS_FREEBSD)
35 #define ICU_UTIL_DATA_IMPL ICU_UTIL_DATA_FILE 35 #define ICU_UTIL_DATA_IMPL ICU_UTIL_DATA_FILE
36 #endif 36 #endif
37 37
38 #endif // ICU_UTIL_DATA_IMPL 38 #endif // ICU_UTIL_DATA_IMPL
39 39
40 #if defined(OS_WIN) 40 #if defined(OS_WIN)
41 #define ICU_UTIL_DATA_SYMBOL "icudt" U_ICU_VERSION_SHORT "_dat" 41 #define ICU_UTIL_DATA_SYMBOL "icudt" U_ICU_VERSION_SHORT "_dat"
42 #define ICU_UTIL_DATA_SHARED_MODULE_NAME "icudt" U_ICU_VERSION_SHORT ".dll" 42 #define ICU_UTIL_DATA_SHARED_MODULE_NAME "icudt" U_ICU_VERSION_SHORT ".dll"
43 #endif 43 #endif
44 44
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 u_setDataDirectory(data_path.value().c_str()); 90 u_setDataDirectory(data_path.value().c_str());
91 // Only look for the packaged data file; 91 // Only look for the packaged data file;
92 // the default behavior is to look for individual files. 92 // the default behavior is to look for individual files.
93 UErrorCode err = U_ZERO_ERROR; 93 UErrorCode err = U_ZERO_ERROR;
94 udata_setFileAccess(UDATA_ONLY_PACKAGES, &err); 94 udata_setFileAccess(UDATA_ONLY_PACKAGES, &err);
95 return err == U_ZERO_ERROR; 95 return err == U_ZERO_ERROR;
96 #endif 96 #endif
97 } 97 }
98 98
99 } // namespace icu_util 99 } // namespace icu_util
OLDNEW
« no previous file with comments | « base/gfx/rect.cc ('k') | base/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698