ICU 49.1.1  49.1.1
uconfig.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (C) 2002-2012, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * file name: uconfig.h
7 * encoding: US-ASCII
8 * tab size: 8 (not used)
9 * indentation:4
10 *
11 * created on: 2002sep19
12 * created by: Markus W. Scherer
13 */
14 
15 #ifndef __UCONFIG_H__
16 #define __UCONFIG_H__
17 
18 
52 #if defined(UCONFIG_USE_LOCAL)
53 #include "uconfig_local.h"
54 #endif
55 
63 #ifdef U_DEBUG
64  /* Use the predefined value. */
65 #elif defined(_DEBUG)
66  /*
67  * _DEBUG is defined by Visual Studio debug compilation.
68  * Do *not* test for its NDEBUG macro: It is an orthogonal macro
69  * which disables assert().
70  */
71 # define U_DEBUG 1
72 # else
73 # define U_DEBUG 0
74 #endif
75 
80 #ifndef UCLN_NO_AUTO_CLEANUP
81 #define UCLN_NO_AUTO_CLEANUP 1
82 #endif
83 
94 #ifdef ICU_USE_THREADS
95  /* Use the predefined value. */
96 #elif defined(APP_NO_THREADS)
97  /* APP_NO_THREADS is an old symbol. We'll honour it if present. */
98 # define ICU_USE_THREADS 0
99 #else
100 # define ICU_USE_THREADS 1
101 #endif
102 
108 #ifndef U_DISABLE_RENAMING
109 #define U_DISABLE_RENAMING 0
110 #endif
111 
120 #ifdef U_NO_DEFAULT_INCLUDE_UTF_HEADERS
121  /* Use the predefined value. */
122 #elif defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || defined(U_I18N_IMPLEMENTATION) || \
123  defined(U_IO_IMPLEMENTATION) || defined(U_LAYOUT_IMPLEMENTATION) || defined(U_LAYOUTEX_IMPLEMENTATION) || \
124  defined(U_TOOLUTIL_IMPLEMENTATION)
125 # define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 1
126 #else
127 # define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 0
128 #endif
129 
143 #ifndef U_OVERRIDE_CXX_ALLOCATION
144 #define U_OVERRIDE_CXX_ALLOCATION 1
145 #endif
146 
152 #ifndef U_ENABLE_TRACING
153 #define U_ENABLE_TRACING 0
154 #endif
155 
161 #ifndef U_ENABLE_DYLOAD
162 #define U_ENABLE_DYLOAD 1
163 #endif
164 
170 #ifndef U_CHECK_DYLOAD
171 #define U_CHECK_DYLOAD 1
172 #endif
173 
174 
180 #ifndef U_DEFAULT_SHOW_DRAFT
181 #define U_DEFAULT_SHOW_DRAFT 1
182 #endif
183 
184 /*===========================================================================*/
185 /* Custom icu entry point renaming */
186 /*===========================================================================*/
187 
193 #ifdef U_HAVE_LIB_SUFFIX
194  /* Use the predefined value. */
195 #elif defined(U_LIB_SUFFIX_C_NAME)
196 # define U_HAVE_LIB_SUFFIX 1
197 #endif
198 
204 #ifdef U_LIB_SUFFIX_C_NAME_STRING
205  /* Use the predefined value. */
206 #elif defined(U_LIB_SUFFIX_C_NAME)
207 # define U_LIB_SUFFIX_C_NAME_STRING #U_LIB_SUFFIX_C_NAME
208 #else
209 # define U_LIB_SUFFIX_C_NAME_STRING ""
210 #endif
211 
212 /* common/i18n library switches --------------------------------------------- */
213 
225 #ifndef UCONFIG_ONLY_COLLATION
226 # define UCONFIG_ONLY_COLLATION 0
227 #endif
228 
229 #if UCONFIG_ONLY_COLLATION
230  /* common library */
231 # define UCONFIG_NO_BREAK_ITERATION 1
232 # define UCONFIG_NO_IDNA 1
233 
234  /* i18n library */
235 # if UCONFIG_NO_COLLATION
236 # error Contradictory collation switches in uconfig.h.
237 # endif
238 # define UCONFIG_NO_FORMATTING 1
239 # define UCONFIG_NO_TRANSLITERATION 1
240 # define UCONFIG_NO_REGULAR_EXPRESSIONS 1
241 #endif
242 
243 /* common library switches -------------------------------------------------- */
244 
263 #ifndef UCONFIG_NO_FILE_IO
264 # define UCONFIG_NO_FILE_IO 0
265 #endif
266 
278 #ifndef UCONFIG_NO_CONVERSION
279 # define UCONFIG_NO_CONVERSION 0
280 #endif
281 
282 #if UCONFIG_NO_CONVERSION
283 # define UCONFIG_NO_LEGACY_CONVERSION 1
284 #endif
285 
298 #ifndef UCONFIG_NO_LEGACY_CONVERSION
299 # define UCONFIG_NO_LEGACY_CONVERSION 0
300 #endif
301 
310 #ifndef UCONFIG_NO_NORMALIZATION
311 # define UCONFIG_NO_NORMALIZATION 0
312 #elif UCONFIG_NO_NORMALIZATION
313  /* common library */
314 # define UCONFIG_NO_IDNA 1
315 
316  /* i18n library */
317 # if UCONFIG_ONLY_COLLATION
318 # error Contradictory collation switches in uconfig.h.
319 # endif
320 # define UCONFIG_NO_COLLATION 1
321 # define UCONFIG_NO_TRANSLITERATION 1
322 #endif
323 
330 #ifndef UCONFIG_NO_BREAK_ITERATION
331 # define UCONFIG_NO_BREAK_ITERATION 0
332 #endif
333 
340 #ifndef UCONFIG_NO_IDNA
341 # define UCONFIG_NO_IDNA 0
342 #endif
343 
351 #ifndef UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE
352 # define UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE UMSGPAT_APOS_DOUBLE_OPTIONAL
353 #endif
354 
355 /* i18n library switches ---------------------------------------------------- */
356 
363 #ifndef UCONFIG_NO_COLLATION
364 # define UCONFIG_NO_COLLATION 0
365 #endif
366 
373 #ifndef UCONFIG_NO_FORMATTING
374 # define UCONFIG_NO_FORMATTING 0
375 #endif
376 
383 #ifndef UCONFIG_NO_TRANSLITERATION
384 # define UCONFIG_NO_TRANSLITERATION 0
385 #endif
386 
393 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
394 # define UCONFIG_NO_REGULAR_EXPRESSIONS 0
395 #endif
396 
403 #ifndef UCONFIG_NO_SERVICE
404 # define UCONFIG_NO_SERVICE 0
405 #endif
406 
407 #endif