From 1d464325fef93f9bbfa5e0c3bf2fa4dd2d69ae35 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 25 Dec 2025 22:59:50 +0100 Subject: [PATCH] include: drop stray bits of Windows CE support libssh2 cannot be compiled for WinCE. Delete two preprocessor conditions in the public header checking for WinCE. Closes #1770 --- include/libssh2.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/libssh2.h b/include/libssh2.h index d8c5d54c..724caebe 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -170,7 +170,7 @@ typedef int libssh2_socket_t; * Determine whether there is small or large file support on windows. */ -#if defined(_MSC_VER) && !defined(_WIN32_WCE) +#ifdef _MSC_VER # define LIBSSH2_USE_WIN32_LARGE_FILES #endif @@ -207,11 +207,9 @@ typedef __int64 libssh2_struct_stat_size; */ #ifdef LIBSSH2_USE_WIN32_SMALL_FILES -# ifndef _WIN32_WCE -# define LIBSSH2_STRUCT_STAT_SIZE_FORMAT "%d" +# define LIBSSH2_STRUCT_STAT_SIZE_FORMAT "%d" typedef struct _stat libssh2_struct_stat; typedef off_t libssh2_struct_stat_size; -# endif #endif #ifndef LIBSSH2_STRUCT_STAT_SIZE_FORMAT