Fixes for boost 1.35.0 with msvc - mainly winsock vs. winsock2 related.

This commit is contained in:
lotodore
2008-04-16 20:38:11 +00:00
parent f981ea504c
commit 2e38f58e13
13 changed files with 24 additions and 14 deletions
+1 -1
View File
@@ -21,8 +21,8 @@
#ifndef _AVATARMANAGER_H_
#define _AVATARMANAGER_H_
#include <playerdata.h>
#include <net/netpacket.h>
#include <playerdata.h>
#include <core/crypthelper.h>
#include <ctime>
#include <map>
+1
View File
@@ -17,6 +17,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <net/socket_helper.h>
#include <net/clientthread.h>
#include <net/clientstate.h>
#include <net/clientcontext.h>
+1 -2
View File
@@ -17,9 +17,8 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <net/ircthread.h>
#include <net/socket_helper.h>
#include <net/ircthread.h>
#include <net/socket_msg.h>
#include <libircclient.h>
#include <boost/algorithm/string/predicate.hpp>
+1
View File
@@ -17,6 +17,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <net/socket_helper.h>
#include <net/resolverthread.h>
#include <net/clientcontext.h>
#include <net/clientexception.h>
+1 -1
View File
@@ -17,10 +17,10 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <net/socket_helper.h>
#include <net/senderthread.h>
#include <net/sendercallback.h>
#include <net/socket_msg.h>
#include <net/socket_helper.h>
#include <core/loghelper.h>
#include <cstring>
#include <cassert>
+1 -1
View File
@@ -17,12 +17,12 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <net/socket_helper.h>
#include <net/serveracceptthread.h>
#include <net/servercontext.h>
#include <net/ircthread.h>
#include <net/connectdata.h>
#include <net/serverlobbythread.h>
#include <net/socket_helper.h>
#include <net/serverexception.h>
#include <net/socket_msg.h>
#include <net/socket_startup.h>
+1 -1
View File
@@ -17,13 +17,13 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <net/socket_helper.h>
#include <net/servermanager.h>
#include <net/servercontext.h>
#include <net/ircthread.h>
#include <net/connectdata.h>
#include <net/serverlobbythread.h>
#include <net/serveracceptthread.h>
#include <net/socket_helper.h>
#include <net/serverexception.h>
#include <net/socket_msg.h>
#include <net/socket_startup.h>
+1 -1
View File
@@ -21,10 +21,10 @@
#ifndef _NETPACKET_H_
#define _NETPACKET_H_
#include <net/socket_helper.h>
#include <playerdata.h>
#include <game_defs.h>
#include <gamedata.h>
#include <net/socket_helper.h>
#include <core/crypthelper.h>
#include <vector>
+1 -1
View File
@@ -74,7 +74,7 @@ socket_string_to_addr(const char *str, int addrFamily, struct sockaddr * addr, i
}
bool
socket_addr_to_string(struct sockaddr *addr, int addrLen, int addrFamily, char *str, int strLen)
socket_addr_to_string(struct sockaddr *addr, int addrLen, int /*addrFamily*/, char *str, int strLen)
{
bool retVal = false;
retVal = (WSAAddressToStringA(addr, addrLen, NULL, str, (DWORD *)&strLen) != SOCKET_ERROR);
+1 -2
View File
@@ -18,8 +18,6 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <iostream>
/////// can be removed for non-qt-guis ////////////
#include <qapplication.h>
@@ -37,6 +35,7 @@
#include <QtGui>
#include <QtCore>
#include <iostream>
#include <cstdlib>
#include <ctime>
+2 -3
View File
@@ -17,19 +17,18 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <iostream>
#include <net/netpacket.h>
#include "session.h"
#include "configfile.h"
#include <qttoolsinterface.h>
#include <gui/generic/serverguiwrapper.h>
#include <net/socket_startup.h>
#include <net/netpacket.h>
#include <core/loghelper.h>
#include <core/thread.h>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <iostream>
#include <fstream>
#include <memory>
#include <csignal>
+1
View File
@@ -17,6 +17,7 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <net/socket_helper.h>
#include "session.h"
#include "game.h"
#include "guiinterface.h"
+11 -1
View File
@@ -93,7 +93,12 @@
#endif
#include <sys/types.h>
#include <sys/stat.h> /* stat(), chmod() */
#include <utime.h> /* utime() */
#ifdef _MSC_VER
#include <sys/utime.h>
#include <io.h>
#else
#include <utime.h> /* utime() */
#endif
#include "zlib.h" /* inflateBackInit(), inflateBack(), */
/* inflateBackEnd(), crc32() */
@@ -101,6 +106,11 @@
#define stat _stat
#define utime _utime
#define utimbuf _utimbuf
#define write _write
#define read _read
#define open _open
#define close _close
#define unlink _unlink
#endif
/* function declaration */