From 41a77398ca2dff76d7b67860d73097506bf9a22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Kubern=C3=A1t?= Date: Thu, 24 Oct 2024 09:52:52 +0200 Subject: [PATCH] compat: Define ssize_t only on Windows I give up. I tried detecting if ssize_t was defined, but there's really no standard way (e.g. NuttX doesn't define __ssize_t_defined. We need it for Windows only anyway. --- libshvchainpack/c/include/shv/chainpack/compat.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libshvchainpack/c/include/shv/chainpack/compat.h b/libshvchainpack/c/include/shv/chainpack/compat.h index 6608846e..6da358aa 100644 --- a/libshvchainpack/c/include/shv/chainpack/compat.h +++ b/libshvchainpack/c/include/shv/chainpack/compat.h @@ -1,11 +1,5 @@ #pragma once -#ifdef __has_include - #if __has_include() - #include - #endif -#endif - -#ifndef __ssize_t_defined +#ifdef _MSC_VER #include typedef intmax_t ssize_t; #endif