From a35f84db32e88b93bcff19317365ee93f75839d1 Mon Sep 17 00:00:00 2001 From: Alessandro De Blasis Date: Tue, 24 Mar 2026 16:35:49 +0100 Subject: [PATCH] build: define ssize_t for MSVC in ghostty.h MSVC's does not define ssize_t (it is a POSIX type). This causes the translate-c build step to fail when translating ghostty.h on Windows. Use SSIZE_T from which is the Windows SDK equivalent. Co-Authored-By: Claude Opus 4.6 (1M context) --- include/ghostty.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/ghostty.h b/include/ghostty.h index 40ff55c9b..3c4002abc 100644 --- a/include/ghostty.h +++ b/include/ghostty.h @@ -17,6 +17,11 @@ extern "C" { #include #include +#ifdef _MSC_VER +#include +typedef SSIZE_T ssize_t; +#endif + //------------------------------------------------------------------- // Macros