aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-03-02 21:25:08 +0000
committerWerner Koch <[email protected]>2010-03-02 21:25:08 +0000
commitd232fd2e543fb81151d7fe25e9f0692610870788 (patch)
tree8ce5ef17c07737c2ae873f945f99fb255f6573a3 /common/util.h
parentFinished jnlib port to CE. (diff)
downloadgnupg-d232fd2e543fb81151d7fe25e9f0692610870788.tar.gz
gnupg-d232fd2e543fb81151d7fe25e9f0692610870788.zip
First steps towards the W32CE port
Diffstat (limited to '')
-rw-r--r--common/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index 3eed4eba8..56678620b 100644
--- a/common/util.h
+++ b/common/util.h
@@ -300,6 +300,13 @@ ttyname (int fd)
}
#endif /* !HAVE_TTYNAME */
+#ifdef HAVE_W32CE_SYSTEM
+#define getpid() GetCurrentProcessId ()
+char *_gnupg_getenv (const char *name); /* See sysutils.c */
+#define getenv(a) _gnupg_getenv ((a))
+#endif
+
+
/*-- Macros to replace ctype ones to avoid locale problems. --*/
#define spacep(p) (*(p) == ' ' || *(p) == '\t')