From: handa Date: Mon, 9 Jul 2007 01:53:04 +0000 (+0000) Subject: * m17n-core.h (M17N_BEGIN_HEADER, M17N_END_HEADER): New macros. X-Git-Tag: FLT-base~6 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=6e4bafc1f57ee1e729fec4408589229a0943fc4b;p=m17n%2Fm17n-lib.git * m17n-core.h (M17N_BEGIN_HEADER, M17N_END_HEADER): New macros. --- 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_ */