aboutsummaryrefslogtreecommitdiffstats
path: root/common/iobuf.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-06-02 14:10:37 +0000
committerWerner Koch <[email protected]>2022-06-03 08:08:21 +0000
commitd2d7a2b128e981740ee3a3c6e2859bec0202cb86 (patch)
treee4e8e62681ca9ae4cb678c0a9ac85d2b25ebd7a9 /common/iobuf.c
parenttools: Minor fix to gpg-connect-agent options. (diff)
downloadgnupg-d2d7a2b128e981740ee3a3c6e2859bec0202cb86.tar.gz
gnupg-d2d7a2b128e981740ee3a3c6e2859bec0202cb86.zip
Remove remaining support for WindowsCE
--
Diffstat (limited to 'common/iobuf.c')
-rw-r--r--common/iobuf.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/common/iobuf.c b/common/iobuf.c
index 05486b976..2137604a9 100644
--- a/common/iobuf.c
+++ b/common/iobuf.c
@@ -78,13 +78,8 @@ static unsigned int iobuf_buffer_size = DEFAULT_IOBUF_BUFFER_SIZE;
#ifdef HAVE_W32_SYSTEM
-# ifdef HAVE_W32CE_SYSTEM
-# define FD_FOR_STDIN (es_fileno (es_stdin))
-# define FD_FOR_STDOUT (es_fileno (es_stdout))
-# else
-# define FD_FOR_STDIN (GetStdHandle (STD_INPUT_HANDLE))
-# define FD_FOR_STDOUT (GetStdHandle (STD_OUTPUT_HANDLE))
-# endif
+# define FD_FOR_STDIN (GetStdHandle (STD_INPUT_HANDLE))
+# define FD_FOR_STDOUT (GetStdHandle (STD_OUTPUT_HANDLE))
#else /*!HAVE_W32_SYSTEM*/
# define FD_FOR_STDIN (0)
# define FD_FOR_STDOUT (1)
@@ -1287,14 +1282,8 @@ iobuf_cancel (iobuf_t a)
{
/* Argg, MSDOS does not allow removing open files. So
* we have to do it here */
-#ifdef HAVE_W32CE_SYSTEM
- wchar_t *wtmp = utf8_to_wchar (remove_name);
- if (wtmp)
- DeleteFile (wtmp);
- xfree (wtmp);
-#else
remove (remove_name);
-#endif
+
xfree (remove_name);
}
#endif
@@ -2893,12 +2882,7 @@ iobuf_read_line (iobuf_t a, byte ** addr_of_buffer,
static int
translate_file_handle (int fd, int for_write)
{
-#if defined(HAVE_W32CE_SYSTEM)
- /* This is called only with one of the special filenames. Under
- W32CE the FD here is not a file descriptor but a rendezvous id,
- thus we need to finish the pipe first. */
- fd = _assuan_w32ce_finish_pipe (fd, for_write);
-#elif defined(HAVE_W32_SYSTEM)
+#if defined(HAVE_W32_SYSTEM)
{
int x;