1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

First batch of changes to support W32CE.

Note that jnlib/w32-reg.c is not yet ready.
This commit is contained in:
Werner Koch 2010-02-26 18:44:36 +00:00
parent 0e018d7144
commit 2cf687cb3e
25 changed files with 524 additions and 1800 deletions

View file

@ -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*/