1## w32-add.h - Snippet to be be included into gpg-error.h.
2## Comments are indicated by a double hash mark.  Due to a
3## peculiarity of the script the first used line must not
4## start with a hash mark.
5
6/* Decide whether to use the format_arg attribute.  */
7#if _GPG_ERR_GCC_VERSION > 20800
8# define _GPG_ERR_ATTR_FORMAT_ARG(a)  __attribute__ ((__format_arg__ (a)))
9#else
10# define _GPG_ERR_ATTR_FORMAT_ARG(a)
11#endif
12
13/* A lean gettext implementation based on GNU style mo files which are
14   required to be encoded in UTF-8.  There is a limit on 65534 entries
15   to save some RAM.  Only Germanic plural rules are supported.  */
16const char *_gpg_w32_bindtextdomain (const char *domainname,
17                                     const char *dirname);
18const char *_gpg_w32_textdomain (const char *domainname);
19const char *_gpg_w32_gettext (const char *msgid)
20            _GPG_ERR_ATTR_FORMAT_ARG (1);
21const char *_gpg_w32_dgettext (const char *domainname, const char *msgid)
22            _GPG_ERR_ATTR_FORMAT_ARG (2);
23const char *_gpg_w32_dngettext (const char *domainname, const char *msgid1,
24                                const char *msgid2, unsigned long int n)
25            _GPG_ERR_ATTR_FORMAT_ARG (2) _GPG_ERR_ATTR_FORMAT_ARG (3);
26const char *_gpg_w32_gettext_localename (void);
27int _gpg_w32_gettext_use_utf8 (int value);
28
29#ifdef GPG_ERR_ENABLE_GETTEXT_MACROS
30# define bindtextdomain(a,b) _gpg_w32_bindtextdomain ((a), (b))
31# define textdomain(a)       _gpg_w32_textdomain ((a))
32# define gettext(a)          _gpg_w32_gettext ((a))
33# define dgettext(a,b)       _gpg_w32_dgettext ((a), (b))
34# define ngettext(a,b,c)     _gpg_w32_dngettext (NULL, (a), (b), (c))
35# define dngettext(a,b,c,d)  _gpg_w32_dngettext ((a), (b), (c), (d))
36# define gettext_localename() _gpg_w32_gettext_localename ()
37# define gettext_use_utf8(a) _gpg_w32_gettext_use_utf8 (a)
38#endif /*GPG_ERR_ENABLE_GETTEXT_MACROS*/
39
40
41