From 5fb918e850fe142b8d42b3f4022302c88755b12a 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 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libshvchainpack/c/include/shv/chainpack/compat.h b/libshvchainpack/c/include/shv/chainpack/compat.h index b702fa70f..bd624f99d 100644 --- a/libshvchainpack/c/include/shv/chainpack/compat.h +++ b/libshvchainpack/c/include/shv/chainpack/compat.h @@ -1,4 +1,12 @@ +#ifdef __has_include + #if __has_include() + #include + #endif +#endif + #pragma once #ifndef __ssize_t_defined -#define ssize_t int64_t +#include +typedef intmax_t ssize_t +#define __ssize_t_defined #endif