aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/sysutils.h')
-rw-r--r--common/sysutils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/sysutils.h b/common/sysutils.h
index 2a3666882..c053e8fb9 100644
--- a/common/sysutils.h
+++ b/common/sysutils.h
@@ -27,9 +27,13 @@
#ifdef HAVE_W32_SYSTEM
typedef void *gnupg_fd_t;
#define GNUPG_INVALID_FD ((void*)(-1))
+#define INT2FD(s) ((void *)(s))
+#define FD2INT(h) ((unsigned int)(h))
#else
typedef int gnupg_fd_t;
#define GNUPG_INVALID_FD (-1)
+#define INT2FD(s) (s)
+#define FD2INT(h) (h)
#endif