From 411cdf39fc2b961a970a0ae91b9059614251247e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 28 Aug 2012 17:42:54 +0000 Subject: Loads of win32 compilation issues fixed. Most are fairly minor unsigned/signed mismatches because of socket handles, but there were also some order-of-definition issues that were fixed in the FD_SETSIZE definition code. Fixed a few things that just never worked on windows, like Bu::Thread::yield(). --- src/compat/win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compat/win32.cpp') diff --git a/src/compat/win32.cpp b/src/compat/win32.cpp index 6488d5f..e1151b0 100644 --- a/src/compat/win32.cpp +++ b/src/compat/win32.cpp @@ -12,7 +12,7 @@ #define deffunc( name ) \ Bu::Winsock2::FNDEF_DYN_ ##name Bu::Winsock2::_fnptr_ ##name = NULL -char Bu::Winsock2::scode[15]; +char Bu::Winsock2::scode[32]; deffunc( WSAStartup ); deffunc( WSACleanup ); @@ -85,7 +85,7 @@ Bu::Winsock2::~Winsock2() char *Bu::Winsock2::gai_strerror( int iCode ) { - sprintf( scode, "%d", Bu::Winsock2::WSAGetLastError() ); + sprintf( scode, "%d (%d)", iCode, Bu::Winsock2::WSAGetLastError() ); return scode; } -- cgit v1.2.3