Skip to content

Commit

Permalink
fix(term): headers on yet another MinGW version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Jul 10, 2024
1 parent c832d2b commit c9a20e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/term.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# ifndef _MSC_VER
# include <conio.h>
# include <unistd.h>
# include <stddef.h>
# endif
#else
# include <termios.h>
Expand All @@ -27,9 +28,9 @@
# include <fcntl.h>
# include <sys/ioctl.h>
# include <unistd.h>
# include <wchar.h>
# include <locale.h>
#endif
#include <wchar.h>


// Windows does not have a wcwidth function, so we use compatibilty code from
Expand Down
1 change: 1 addition & 0 deletions src/wcwidth.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#ifdef _WIN32
#include <stdint.h>
#include <stddef.h>
typedef uint32_t mk_wchar_t; // Windows wchar_t can be 16-bit, we need 32-bit
#else
#include <wchar.h>
Expand Down

0 comments on commit c9a20e8

Please sign in to comment.