From 803d3d16d8f36a581b14dd57d1574f2a26a950ed Mon Sep 17 00:00:00 2001 From: Hyunjee Kim Date: Tue, 30 May 2017 16:42:21 +0900 Subject: [PATCH] match and add extern "C" pair brakets for C++ compilation Change-Id: I0faf3b23cd2141cc751d9f2b0f7addc9ec4d78bd Signed-off-by: Hyunjee Kim --- packaging/capi-base-utils.spec | 2 +- src/include/utils_i18n_uchar_iter.h | 8 ++++++++ src/include/utils_i18n_ucollator.h | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packaging/capi-base-utils.spec b/packaging/capi-base-utils.spec index 1ca3285..d1af6d8 100755 --- a/packaging/capi-base-utils.spec +++ b/packaging/capi-base-utils.spec @@ -1,6 +1,6 @@ Name: capi-base-utils Summary: Base Utils -Version: 3.0.1 +Version: 3.0.2 Release: 1 Group: Base License: Apache-2.0 and ICU diff --git a/src/include/utils_i18n_uchar_iter.h b/src/include/utils_i18n_uchar_iter.h index 93438cc..65c1eae 100644 --- a/src/include/utils_i18n_uchar_iter.h +++ b/src/include/utils_i18n_uchar_iter.h @@ -25,6 +25,10 @@ * @brief utils_i18n_uchar_iterator */ +#ifdef __cplusplus +extern "C" { +#endif + /** * @ingroup CAPI_BASE_UTILS_I18N_MODULE * @defgroup CAPI_BASE_UTILS_I18N_UCHAR_ITER_MODULE UChar Iterator @@ -325,4 +329,8 @@ int i18n_uchar_iter_set_state(i18n_uchar_iter_h iter, uint32_t state); * @} */ +#ifdef __cplusplus +} +#endif + #endif /* __UTILS_I18N_UCHAR_ITER_H__ */ diff --git a/src/include/utils_i18n_ucollator.h b/src/include/utils_i18n_ucollator.h index 1923fad..f66f180 100644 --- a/src/include/utils_i18n_ucollator.h +++ b/src/include/utils_i18n_ucollator.h @@ -989,4 +989,8 @@ int i18n_ucollator_create_binary(const uint8_t *bin, int32_t length, * @} */ +#ifdef __cplusplus +} +#endif + #endif /* __UTILS_I18N_UCOLLATOR_H__*/ -- 2.7.4