Commit 5be60d69 authored by stijn's avatar stijn Committed by Paul Sokolovsky
Browse files

windows: Define ssize_t and use renamed mphal header

This fixes the build after changes in [66fd3e4a] and [3a6b3d23]
parent 863d4cd8
......@@ -196,6 +196,13 @@ extern const struct _mp_obj_module_t mp_module_time;
#define PATH_MAX MICROPY_ALLOC_PATH_MAX
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#ifdef _WIN64
#define SSIZE_MAX _I64_MAX
typedef __int64 ssize_t;
#else
#define SSIZE_MAX _I32_MAX
typedef int ssize_t;
#endif
// Put static/global variables in sections with a known name
......
......@@ -25,7 +25,7 @@
*/
#include "sleep.h"
#include "unix/unix_mphal.h"
#include "unix/mphalport.h"
#define MICROPY_HAL_HAS_VT100 (0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment