[svn] gpg-error - r236 - in trunk: . src
svn author wk
cvs at cvs.gnupg.org
Tue Mar 9 12:35:25 CET 2010
Author: wk
Date: 2010-03-09 12:35:25 +0100 (Tue, 09 Mar 2010)
New Revision: 236
Modified:
trunk/ChangeLog
trunk/configure.ac
trunk/src/gpg-error.h.in
trunk/src/w32-add.h
Log:
Add macro to enable gettext macros.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-03-08 20:53:08 UTC (rev 235)
+++ trunk/ChangeLog 2010-03-09 11:35:25 UTC (rev 236)
@@ -1,3 +1,8 @@
+2010-03-09 Werner Koch <wk at g10code.com>
+
+ * src/w32-add.h [!GPG_ERR_ENABLE_GETTEXT_MACROS]: Do not provide
+ gettext macros.
+
2010-03-08 Werner Koch <wk at g10code.com>
* src/w32-add.h (_GPG_ERR_ATTR_FORMAT_ARG): New.
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2010-03-08 20:53:08 UTC (rev 235)
+++ trunk/configure.ac 2010-03-09 11:35:25 UTC (rev 236)
@@ -106,6 +106,8 @@
#if defined(HAVE_W32_SYSTEM) && !defined(ENABLE_NLS)
#define ENABLE_NLS 1
#endif
+/* For building we need to define this macro. */
+#define GPG_ERR_ENABLE_GETTEXT_MACROS
])
Modified: trunk/src/gpg-error.h.in
===================================================================
--- trunk/src/gpg-error.h.in 2010-03-08 20:53:08 UTC (rev 235)
+++ trunk/src/gpg-error.h.in 2010-03-09 11:35:25 UTC (rev 236)
@@ -53,13 +53,17 @@
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.
Modified: trunk/src/w32-add.h
===================================================================
--- trunk/src/w32-add.h 2010-03-08 20:53:08 UTC (rev 235)
+++ trunk/src/w32-add.h 2010-03-09 11:35:25 UTC (rev 236)
@@ -26,11 +26,15 @@
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*/
+
+
More information about the Gnupg-commits
mailing list