summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c3
1 files changed, 2 insertions, 1 deletions
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 <conio.h>
# include <unistd.h>
+# include <stddef.h>
# endif
#else
# include <termios.h>
@@ -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