diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-20 19:04:23 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-20 19:04:23 -0800 |
commit | 16594884da1c20c60fa1211c76939696547c02b5 (patch) | |
tree | 1e1ae20b323f6e99a36bcf9611032726c76afae6 /includes/BString.h | |
parent | 3a91332a70abfc777a352c46727f54426c982371 (diff) |
Sockets are now working properly under MSVC. I guess I broke mingw32 though, but we'll fix this later.
Diffstat (limited to 'includes/BString.h')
-rw-r--r-- | includes/BString.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 <vector> #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))) |