summaryrefslogtreecommitdiff
path: root/src/gpg-error.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-01-18 15:10:37 +0000
committerWerner Koch <wk@gnupg.org>2010-01-18 15:10:37 +0000
commit0fe34500c2dcdcf274c2485dfda28127e77e7c14 (patch)
tree1caa11aaf4d67df434769118c9a7dbfcfa9b0588 /src/gpg-error.c
parentbd6b75cc17627c2e9208eb33c0dd8a9990213494 (diff)
downloadlibgpg-error-0fe34500c2dcdcf274c2485dfda28127e77e7c14.tar.gz
Add some code to build nativley under WindowsCE - not finished.
Diffstat (limited to 'src/gpg-error.c')
-rw-r--r--src/gpg-error.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gpg-error.c b/src/gpg-error.c
index c2fadb8..eefd672 100644
--- a/src/gpg-error.c
+++ b/src/gpg-error.c
@@ -71,7 +71,11 @@ i18n_init (void)
setlocale (LC_TIME, "");
setlocale (LC_MESSAGES, "");
# else
- setlocale (LC_ALL, "" );
+# ifdef HAVE_W32_SYSTEM
+# warning setlocal is missing
+# else
+ setlocale (LC_ALL, "" );
+# endif
# endif
locale_dir = get_locale_dir ();
@@ -158,6 +162,7 @@ read_w32_registry_string( const char *root, const char *dir, const char *name )
goto leave;
}
result[nbytes] = 0; /* make sure it is really a string */
+#ifndef HAVE_W32CE_SYSTEM
if (type == REG_EXPAND_SZ && strchr (result, '%')) {
char *tmp;
@@ -196,6 +201,7 @@ read_w32_registry_string( const char *root, const char *dir, const char *name )
free (tmp);
}
}
+#endif /*HAVE_W32CE_SYSTEM*/
leave:
RegCloseKey( key_handle );
@@ -255,7 +261,7 @@ get_err_from_number (char *str, gpg_error_t *err)
unsigned long nr;
char *tail;
- errno = 0;
+ gpg_err_set_errno (0);
nr = strtoul (str, &tail, 0);
if (errno)
return 0;