From: handa Date: Tue, 4 Dec 2007 01:48:27 +0000 (+0000) Subject: Handle the case of _M17N_FLT_H_ being defined. X-Git-Tag: REL-1-5-0~29 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=2966dd3db80742c15dd4f313e11d114e961315d0;p=m17n%2Fm17n-lib.git Handle the case of _M17N_FLT_H_ being defined. --- diff --git a/src/m17n.h b/src/m17n.h index 5e5d278..dd94200 100644 --- a/src/m17n.h +++ b/src/m17n.h @@ -36,11 +36,20 @@ M17N_BEGIN_HEADER #if !defined (FOR_DOXYGEN) || defined (DOXYGEN_INTERNAL_MODULE) extern void m17n_init (void); #undef M17N_INIT -#define M17N_INIT() m17n_init () +#ifdef _M17N_FLT_H_ +#define M17N_INIT() m17n_init_flt (1) +#else /* not _M17N_FLT_H_ */ +#define M17N_INIT() m17n_init (1) +#endif /* not _M17N_FLT_H_ */ extern void m17n_fini (void); #undef M17N_FINI +#ifdef _M17N_FLT_H_ +#define M17N_FINI() m17n_fini_flt (1) +#else /* not _M17N_FLT_H_ */ #define M17N_FINI() m17n_fini () +#endif /* not _M17N_FLT_H_ */ + #endif /***en @defgroup m17nShell SHELL API */