Fix ssize_t definition for MSVC builds.

parent 33fa3dc2
......@@ -335,6 +335,14 @@ BDIR* Bopendir(const char *name);
struct Bdirent* Breaddir(BDIR *dir);
int Bclosedir(BDIR *dir);
#ifdef _MSC_VER
# if defined _M_AMD64 || defined _M_ARM64 || defined _M_X64 || defined _WIN64
// should be int64_t, if not for a suspected VS compiler bug
typedef int32_t ssize_t;
# else
typedef int32_t ssize_t;
# endif
#endif
#ifdef __compat_h_macrodef__
typedef FILE BFILE;
......
Markdown is supported
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