From: Bruno Haible Date: Mon, 12 May 2003 18:27:24 +0000 (+0000) Subject: Portability to Woe32. X-Git-Tag: v0.12~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b7f58ca2fdd5723525eca2d7c7cc2b2cbf9f733;p=thirdparty%2Fgettext.git Portability to Woe32. --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 38e7343da..52e5bf157 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,8 @@ +2003-05-12 Bruno Haible + + * msginit.c (F_OK): Provide a fallback value. + Reported by Perry Rapp. + 2003-05-10 Bruno Haible * msgl-iconv.c (iconv_string): Don't return -1 just because the string diff --git a/gettext-tools/src/msginit.c b/gettext-tools/src/msginit.c index 2205dddc6..c348eaf69 100644 --- a/gettext-tools/src/msginit.c +++ b/gettext-tools/src/msginit.c @@ -98,6 +98,11 @@ #define _(str) gettext (str) #define N_(str) (str) +/* Get F_OK. It is lacking from on Woe32. */ +#ifndef F_OK +# define F_OK 0 +#endif + #define SIZEOF(a) (sizeof(a) / sizeof(a[0])) extern const char * _nl_locale_name (int category, const char *categoryname);