diff options
author | Werner Koch <[email protected]> | 2010-02-26 18:44:36 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-02-26 18:44:36 +0000 |
commit | 2cf687cb3e2818ac3a6b51fea282a65f4395f580 (patch) | |
tree | 51376a0ff19c4aea990c42a895c3ef104881c240 /jnlib/libjnlib-config.h | |
parent | Some minor changes and typo fixes. (diff) | |
download | gnupg-2cf687cb3e2818ac3a6b51fea282a65f4395f580.tar.gz gnupg-2cf687cb3e2818ac3a6b51fea282a65f4395f580.zip |
First batch of changes to support W32CE.
Note that jnlib/w32-reg.c is not yet ready.
Diffstat (limited to 'jnlib/libjnlib-config.h')
-rw-r--r-- | jnlib/libjnlib-config.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/jnlib/libjnlib-config.h b/jnlib/libjnlib-config.h index 5c6144286..621e89feb 100644 --- a/jnlib/libjnlib-config.h +++ b/jnlib/libjnlib-config.h @@ -39,7 +39,7 @@ /* Gettext stuff */ #ifdef USE_SIMPLE_GETTEXT -# include "w32help.h" +# include <gpg-error.h> # define _(a) gettext (a) # define N_(a) (a) @@ -80,5 +80,20 @@ #define jnlib_log_fatal log_fatal #define jnlib_log_bug log_bug +/* Wrapper to set ERRNO. */ +#ifdef HAVE_W32CE_SYSTEM +# define jnlib_set_errno(e) gpg_err_set_errno ((e)) +#else +# define jnlib_set_errno(e) do { errno = (e); } while (0) +#endif + +/* Dummy replacement for getenv. */ +#ifndef HAVE_GETENV +#define getenv(a) (NULL) +#endif + +#ifdef HAVE_W32CE_SYSTEM +#define getpid() GetCurrentProcessId () +#endif #endif /*LIBJNUTIL_CONFIG_H*/ |