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 +++++- includes/Selectable.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'includes') 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))) diff --git a/includes/Selectable.h b/includes/Selectable.h index 0cfae0c..b3b5b8c 100644 --- a/includes/Selectable.h +++ b/includes/Selectable.h @@ -1,4 +1,7 @@ #pragma once +#ifdef _WIN32 +#include +#endif #include #include -- cgit v1.2.3