From 2cf687cb3e2818ac3a6b51fea282a65f4395f580 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 26 Feb 2010 18:44:36 +0000 Subject: First batch of changes to support W32CE. Note that jnlib/w32-reg.c is not yet ready. --- jnlib/t-support.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'jnlib/t-support.c') diff --git a/jnlib/t-support.c b/jnlib/t-support.c index d8eba3b59..bf05c4c06 100644 --- a/jnlib/t-support.c +++ b/jnlib/t-support.c @@ -120,6 +120,7 @@ gcry_free (void *a) require functions called from these inline fucntions. Although we do not use gpg-error, gpg-error.h may get included via gcrypt.h if it happens to be used used in libjnlib-config.h. */ +#ifndef GPG_ERROR_H /* Don't do this if gpg-error.h has been included. */ int gpg_err_code_from_errno (int err) { @@ -127,17 +128,20 @@ gpg_err_code_from_errno (int err) assert (!"stub function"); return -1; } +#endif /*GPG_ERROR_H*/ /* Retrieve the error code directly from the ERRNO variable. This returns GPG_ERR_UNKNOWN_ERRNO if the system error is not mapped (report this) and GPG_ERR_MISSING_ERRNO if ERRNO has the value 0. */ +#ifndef GPG_ERROR_H /* Don't do this if gpg-error.h has been included. */ int gpg_err_code_from_syserror (void) { assert (!"stub function"); return -1; } +#endif /*GPG_ERROR_H*/ -- cgit v1.2.3