From 16594884da1c20c60fa1211c76939696547c02b5 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 20 Dec 2013 19:04:23 -0800 Subject: Sockets are now working properly under MSVC. I guess I broke mingw32 though, but we'll fix this later. --- includes/BString.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'includes/BString.h') diff --git a/includes/BString.h b/includes/BString.h index 9f68e9a..a4178a4 100644 --- a/includes/BString.h +++ b/includes/BString.h @@ -13,7 +13,11 @@ #include #ifdef _MSC_VER -typedef size_t ssize_t; +#ifdef _WIN64 +typedef __int64 ssize_t; +#else /* _WIN64 */ +typedef _W64 int ssize_t; +#endif /* _WIN64 */ #define printfwarning(a, b) #else #define printfwarning(a, b) __attribute__((format(printf, a, b))) -- cgit v1.2.3