aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpg-error.h.in8
-rw-r--r--src/w32-add.h20
2 files changed, 18 insertions, 10 deletions
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index 7068add..8f70ac9 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -53,12 +53,16 @@ extern "C" {
another, it preserver the information about the source and nature
of the error.
- A component of the GnuPG project can define the following macro to
+ A component of the GnuPG project can define the following macros to
tune the behaviour of the library:
GPG_ERR_SOURCE_DEFAULT: Define to an error source of type
gpg_err_source_t to make that source the default for gpg_error().
- Otherwise GPG_ERR_SOURCE_UNKNOWN is used as default. */
+ Otherwise GPG_ERR_SOURCE_UNKNOWN is used as default.
+
+ GPG_ERR_ENABLE_GETTEXT_MACROS: Define to provide macros to map the
+ internal gettext API to standard names. This has only an effect on
+ Windows platforms. */
/* The error source type gpg_err_source_t.
diff --git a/src/w32-add.h b/src/w32-add.h
index 54be911..3149af0 100644
--- a/src/w32-add.h
+++ b/src/w32-add.h
@@ -26,11 +26,15 @@ const char *_gpg_w32_dngettext (const char *domainname, const char *msgid1,
const char *_gpg_w32_gettext_localename (void);
int _gpg_w32_gettext_use_utf8 (int value);
-#define bindtextdomain(a,b) _gpg_w32_bindtextdomain ((a), (b))
-#define textdomain(a) _gpg_w32_textdomain ((a))
-#define gettext(a) _gpg_w32_gettext ((a))
-#define dgettext(a,b) _gpg_w32_dgettext ((a), (b))
-#define ngettext(a,b,c) _gpg_w32_dngettext (NULL, (a), (b), (c))
-#define dngettext(a,b,c,d) _gpg_w32_dngettext ((a), (b), (c), (d))
-#define gettext_localname() _gpg_w32_gettext_localename ()
-#define gettext_use_utf8(a) _gpg_w32_gettext_use_utf8 (a)
+#ifdef GPG_ERR_ENABLE_GETTEXT_MACROS
+# define bindtextdomain(a,b) _gpg_w32_bindtextdomain ((a), (b))
+# define textdomain(a) _gpg_w32_textdomain ((a))
+# define gettext(a) _gpg_w32_gettext ((a))
+# define dgettext(a,b) _gpg_w32_dgettext ((a), (b))
+# define ngettext(a,b,c) _gpg_w32_dngettext (NULL, (a), (b), (c))
+# define dngettext(a,b,c,d) _gpg_w32_dngettext ((a), (b), (c), (d))
+# define gettext_localname() _gpg_w32_gettext_localename ()
+# define gettext_use_utf8(a) _gpg_w32_gettext_use_utf8 (a)
+#endif /*GPG_ERR_ENABLE_GETTEXT_MACROS*/
+
+