From 6e4bafc1f57ee1e729fec4408589229a0943fc4b Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 9 Jul 2007 01:53:04 +0000 Subject: [PATCH] * m17n-core.h (M17N_BEGIN_HEADER, M17N_END_HEADER): New macros. --- src/m17n-core.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/m17n-core.h b/src/m17n-core.h index e794d8a..da33902 100644 --- a/src/m17n-core.h +++ b/src/m17n-core.h @@ -24,10 +24,15 @@ #define _M17N_CORE_H_ #ifdef __cplusplus -extern "C" -{ +#define M17N_BEGIN_HEADER extern "C" { +#define M17N_END_HEADER } +#else +#define M17N_BEGIN_HEADER /* do nothing */ +#define M17N_END_HEADER /* do nothing */ #endif +M17N_BEGIN_HEADER + /* * Header file for m17n library. */ @@ -773,9 +778,7 @@ extern MText *mtext_serialize (MText *mt, int from, int to, extern MText *mtext_deserialize (MText *mt); -#ifdef __cplusplus -} -#endif +M17N_END_HEADER #endif /* _M17N_CORE_H_ */ -- 1.7.10.4