diff options
author | Marcus Brinkmann <[email protected]> | 2010-05-07 01:32:54 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2010-05-07 01:32:54 +0000 |
commit | be3a828e7057e2ea01772b2a00d2ad3e5c46776c (patch) | |
tree | 8223fed22dbc57323d27a90909e6b8fb6646c4a5 /src/engine-gpg.c | |
parent | 2010-05-07 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-be3a828e7057e2ea01772b2a00d2ad3e5c46776c.tar.gz gpgme-be3a828e7057e2ea01772b2a00d2ad3e5c46776c.zip |
2010-05-07 Marcus Brinkmann <[email protected]>
* engine-g13.c, gpgme.c, engine-gpgsm.c, engine-gpg.c,
op-support.c, engine-assuan.c, gpgme-tool.c: Include <locale.h>
only if available with HAVE_LOCALE_H and conditionalize use of
LC_CTYPE on its definition.
* engine-gpgconf.c: Do not include <locale.h>.
Diffstat (limited to 'src/engine-gpg.c')
-rw-r--r-- | src/engine-gpg.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine-gpg.c b/src/engine-gpg.c index a05fca28..da66d4d7 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -28,7 +28,9 @@ #include <assert.h> #include <errno.h> #include <unistd.h> +#ifdef HAVE_LOCALE_H #include <locale.h> +#endif #include "gpgme.h" #include "util.h" @@ -563,7 +565,10 @@ gpg_set_locale (void *engine, int category, const char *value) { engine_gpg_t gpg = engine; - if (category == LC_CTYPE) + if (0) + ; +#ifdef LC_CTYPE + else if (category == LC_CTYPE) { if (gpg->lc_ctype) { @@ -577,6 +582,7 @@ gpg_set_locale (void *engine, int category, const char *value) return gpg_error_from_syserror (); } } +#endif #ifdef LC_MESSAGES else if (category == LC_MESSAGES) { |