From 3496b7ff6168be814a159c6867996ed9b5ee55fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Kubern=C3=A1t?= Date: Wed, 23 Oct 2024 15:08:46 +0200 Subject: [PATCH] Fix compat file --- libshvchainpack/c/include/shv/chainpack/compat.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libshvchainpack/c/include/shv/chainpack/compat.h b/libshvchainpack/c/include/shv/chainpack/compat.h index b702fa70f..6608846ef 100644 --- a/libshvchainpack/c/include/shv/chainpack/compat.h +++ b/libshvchainpack/c/include/shv/chainpack/compat.h @@ -1,4 +1,11 @@ #pragma once +#ifdef __has_include + #if __has_include() + #include + #endif +#endif + #ifndef __ssize_t_defined -#define ssize_t int64_t +#include +typedef intmax_t ssize_t; #endif