Kouhei Sutou
null+****@clear*****
Fri May 24 11:19:16 JST 2013
Kouhei Sutou 2013-05-24 11:19:16 +0900 (Fri, 24 May 2013) New Revision: a1291ab6a8973a8d7ca15ccd4641a10f9407b033 https://github.com/mroonga/mroonga/commit/a1291ab6a8973a8d7ca15ccd4641a10f9407b033 Message: Don't use FN_LIBCHAR2 with MySQL 5.1 refs #1765 Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+4 -0) =================================================================== --- ha_mroonga.cpp 2013-05-24 11:16:49 +0900 (0662784) +++ ha_mroonga.cpp 2013-05-24 11:19:16 +0900 (15d794c) @@ -3790,8 +3790,12 @@ void ha_mroonga::ensure_database_directory() const char *last_path_separator; last_path_separator = strrchr(mrn_database_path_prefix, FN_LIBCHAR); + // For MySQL 5.1. MySQL 5.1 doesn't have FN_LIBCHAR2. + // We will remove this ifdef check after we drop MySQL 5.1 support!!! +#ifdef FN_LIBCHAR2 if (!last_path_separator) last_path_separator = strrchr(mrn_database_path_prefix, FN_LIBCHAR2); +#endif if (!last_path_separator) DBUG_VOID_RETURN; if (mrn_database_path_prefix == last_path_separator) -------------- next part -------------- HTML����������������������������...ダウンロード