From 0251a935a81bf2c15a0a752b51520d454f4dbd1d Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 13 Mar 2004 11:14:21 +0000 Subject: fixed compilation on cygwin --- src/I18n.hh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/I18n.hh b/src/I18n.hh index 26292c5..1960870 100644 --- a/src/I18n.hh +++ b/src/I18n.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: I18n.hh,v 1.2 2003/12/08 17:29:24 fluxgen Exp $ +// $Id: I18n.hh,v 1.3 2004/03/13 11:14:21 fluxgen Exp $ #ifndef I18N_HH #define I18N_HH @@ -33,6 +33,7 @@ #include "config.h" #endif // HAVE_CONFIG_H + #ifdef HAVE_LOCALE_H #include #endif // HAVE_LOCALE_H @@ -42,6 +43,18 @@ extern "C" { #include } +#elif defined(__CYGWIN__) +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus +typedef int nl_catd; +char *catgets(nl_catd cat, int set_number, int message_number, char *message); +nl_catd catopen(char *name, int flag); +void catclose(nl_catd cat); +#ifdef __cplusplus +} +#endif // __cplusplus + #endif // HAVE_NL_TYPES_H #include -- cgit v0.11.2