#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.
*/
extern MText *mtext_deserialize (MText *mt);
-#ifdef __cplusplus
-}
-#endif
+M17N_END_HEADER
#endif /* _M17N_CORE_H_ */