aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/t-support.h
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.h
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.h')
-rw-r--r--jnlib/t-support.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/jnlib/t-support.h b/jnlib/t-support.h
index 52701741b..2dfbc0990 100644
--- a/jnlib/t-support.h
+++ b/jnlib/t-support.h
@@ -24,7 +24,17 @@
#error The regression tests should not include with gcrypt.h
#endif
-/* Repalcement prototypes. */
+#ifdef HAVE_W32CE_SYSTEM
+#include <gpg-error.h> /* Defines strerror. */
+#endif
+
+
+#ifndef HAVE_GETENV
+# define getenv(a) (NULL)
+#endif
+
+
+/* Replacement prototypes. */
void *gcry_xmalloc (size_t n);
void *gcry_xcalloc (size_t n, size_t m);
void *gcry_xrealloc (void *a, size_t n);