diff options
author | Marcus Brinkmann <[email protected]> | 2005-10-25 18:22:59 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2005-10-25 18:22:59 +0000 |
commit | 5a586422359d2e3c3e4e35230d2eb12a47b3ce3f (patch) | |
tree | 652cb812ece78fef41ece39d799c8814190593de /src/gettext.h | |
parent | 2005-10-23 Marcus Brinkmann <[email protected]> (diff) | |
download | libgpg-error-5a586422359d2e3c3e4e35230d2eb12a47b3ce3f.tar.gz libgpg-error-5a586422359d2e3c3e4e35230d2eb12a47b3ce3f.zip |
2005-10-25 Marcus Brinkmann <[email protected]>
* src/Makefile.am (arch_sources): New variable.
(libgpg_error_la_SOURCES): Add $(arch_sources).
* src/gettext.h [HAVE_W32_SYSTEM]: Include w32-gettext.h.
* src/w32-gettext.h: New file.
* src/w32-gettext.c: New file.
* src/gpg-error.h.in: Check for gcc's constructor attribute.
Use it for gpg_err_init.
(GPG_ERR_INITIALIZED): Define if constructor is available.
* src/gpg-error.c (main) [GPG_ERR_INITIALIZED]: Don't invoke
gpg_err_init.
(i18n_init): Call bindtextdomain as well. Now that gpg-error has
its own gettext implementation, we can't rely on it anymore.
Also, repeat all the w32 stuff for fetching the registry.
Diffstat (limited to 'src/gettext.h')
-rw-r--r-- | src/gettext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gettext.h b/src/gettext.h index 8b262f4..5adda46 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -22,8 +22,14 @@ /* NLS can be disabled through the configure --disable-nls option. */ #if ENABLE_NLS +#if HAVE_W32_SYSTEM +/* Redirect the gettext calls to an internal implementation on W32 + targets. */ +# include "w32-gettext.h" +#else /* Get declarations of GNU message catalog functions. */ # include <libintl.h> +#endif #else |