From c9a20e82907dc3631aa06738cefb650bcc55bc29 Mon Sep 17 00:00:00 2001 From: Thijs Date: Thu, 11 Jul 2024 00:41:32 +0200 Subject: [PATCH] fix(term): headers on yet another MinGW version --- src/term.c | 3 ++- src/wcwidth.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index 3db8d0c..1bb6c75 100644 --- a/src/term.c +++ b/src/term.c @@ -19,6 +19,7 @@ # ifndef _MSC_VER # include # include +# include # endif #else # include @@ -27,9 +28,9 @@ # include # include # include -# include # include #endif +#include // Windows does not have a wcwidth function, so we use compatibilty code from diff --git a/src/wcwidth.h b/src/wcwidth.h index f2fee11..6cb6f6d 100644 --- a/src/wcwidth.h +++ b/src/wcwidth.h @@ -9,6 +9,7 @@ #ifdef _WIN32 #include +#include typedef uint32_t mk_wchar_t; // Windows wchar_t can be 16-bit, we need 32-bit #else #include