summaryrefslogtreecommitdiff
path: root/mysys/charset-def.c
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-02-18 12:58:16 +0400
committerunknown <bar@mysql.com>2005-02-18 12:58:16 +0400
commit29fb8728e45d22241a6d225d787cd5b19e2053cb (patch)
tree33e0ed18a7ccfb0421c19e7fe64ecea96946db2e /mysys/charset-def.c
parent2b69b4ae4f0b29a0eceb72a404b7f52a67748875 (diff)
downloadmariadb-git-29fb8728e45d22241a6d225d787cd5b19e2053cb.tar.gz
A way not to compile UCA collations
Diffstat (limited to 'mysys/charset-def.c')
-rw-r--r--mysys/charset-def.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysys/charset-def.c b/mysys/charset-def.c
index 3dcd2a2d116..3278566788c 100644
--- a/mysys/charset-def.c
+++ b/mysys/charset-def.c
@@ -22,6 +22,8 @@
init_compiled_charsets() that only adds those that he wants
*/
+#ifdef HAVE_UCA_COLLATIONS
+
#ifdef HAVE_CHARSET_ucs2
extern CHARSET_INFO my_charset_ucs2_general_uca;
extern CHARSET_INFO my_charset_ucs2_icelandic_uca_ci;
@@ -62,6 +64,8 @@ extern CHARSET_INFO my_charset_utf8_roman_uca_ci;
extern CHARSET_INFO my_charset_utf8_persian_uca_ci;
#endif
+#endif /* HAVE_UCA_COLLATIONS */
+
my_bool init_compiled_charsets(myf flags __attribute__((unused)))
{
CHARSET_INFO *cs;
@@ -113,6 +117,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
#ifdef HAVE_CHARSET_ucs2
add_compiled_collation(&my_charset_ucs2_general_ci);
add_compiled_collation(&my_charset_ucs2_bin);
+#ifdef HAVE_UCA_COLLATIONS
add_compiled_collation(&my_charset_ucs2_general_uca);
add_compiled_collation(&my_charset_ucs2_icelandic_uca_ci);
add_compiled_collation(&my_charset_ucs2_latvian_uca_ci);
@@ -131,6 +136,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation(&my_charset_ucs2_roman_uca_ci);
add_compiled_collation(&my_charset_ucs2_persian_uca_ci);
#endif
+#endif
#ifdef HAVE_CHARSET_ujis
add_compiled_collation(&my_charset_ujis_japanese_ci);
@@ -140,6 +146,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
#ifdef HAVE_CHARSET_utf8
add_compiled_collation(&my_charset_utf8_general_ci);
add_compiled_collation(&my_charset_utf8_bin);
+#ifdef HAVE_UCA_COLLATIONS
add_compiled_collation(&my_charset_utf8_general_uca_ci);
add_compiled_collation(&my_charset_utf8_icelandic_uca_ci);
add_compiled_collation(&my_charset_utf8_latvian_uca_ci);
@@ -158,6 +165,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation(&my_charset_utf8_roman_uca_ci);
add_compiled_collation(&my_charset_utf8_persian_uca_ci);
#endif
+#endif
/* Copy compiled charsets */
for (cs=compiled_charsets; cs->name; cs++)