aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/t-support.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-02-26 18:44:36 +0000
committerWerner Koch <[email protected]>2010-02-26 18:44:36 +0000
commit2cf687cb3e2818ac3a6b51fea282a65f4395f580 (patch)
tree51376a0ff19c4aea990c42a895c3ef104881c240 /jnlib/t-support.c
parentSome minor changes and typo fixes. (diff)
downloadgnupg-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/t-support.c')
-rw-r--r--jnlib/t-support.c4
1 files changed, 4 insertions, 0 deletions
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*/