[9336] Use single FD_SETSIZE define

* Remove unused framework/Network/SocketDefines.h
* Make sure that we have single FD_SETSIZE define in code
This commit is contained in:
VladimirMangos 2010-02-09 02:30:34 +03:00
parent 08c364214b
commit 8997f0f240
8 changed files with 4 additions and 67 deletions

View file

@ -42,7 +42,6 @@ EXTRA_DIST = \
GameSystem/TypeContainerFunctions.h \
GameSystem/TypeContainerFunctionsPtr.h \
GameSystem/TypeContainerVisitor.h \
Network/SocketDefines.h \
Platform/CompilerDefs.h \
Platform/Define.h \
Policies/CreationPolicy.h \

View file

@ -1,46 +0,0 @@
/*
* Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef MANGOS_SOCKETDEFINES_H
#define MANGOS_SOCKETDEFINES_H
#ifdef WIN32
/* Windows socket definitions
*/
#define FD_SETSIZE 1024
#include <winsock2.h>
#include <Ws2tcpip.h>
typedef SOCKET SocketHandle;
typedef fd_set SelectSet;
#else
/* The unix socket definitions
*/
#include <sys/socket.h>
#include <netinet/in.h>
#ifdef __APPLE_CC__
#include <sys/select.h>
#endif
typedef int SocketHandle;
typedef fd_set SelectSet;
#endif
#endif

View file

@ -21,13 +21,13 @@
#ifndef _DATABASEMYSQL_H
#define _DATABASEMYSQL_H
#include "Common.h"
#include "Database.h"
#include "Policies/Singleton.h"
#include "ace/Thread_Mutex.h"
#include "ace/Guard_T.h"
#ifdef WIN32
#define FD_SETSIZE 1024
#include <winsock2.h>
#include <mysql/mysql.h>
#else

View file

@ -21,8 +21,9 @@
#if !defined(QUERYRESULTMYSQL_H)
#define QUERYRESULTMYSQL_H
#include "Common.h"
#ifdef WIN32
#define FD_SETSIZE 1024
#include <winsock2.h>
#include <mysql/mysql.h>
#else

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9335"
#define REVISION_NR "9336"
#endif // __REVISION_NR_H__

View file

@ -302,7 +302,6 @@
<ClInclude Include="..\..\src\framework\GameSystem\TypeContainer.h" />
<ClInclude Include="..\..\src\framework\GameSystem\TypeContainerFunctions.h" />
<ClInclude Include="..\..\src\framework\GameSystem\TypeContainerVisitor.h" />
<ClInclude Include="..\..\src\framework\Network\SocketDefines.h" />
<ClInclude Include="..\..\src\framework\Platform\CompilerDefs.h" />
<ClInclude Include="..\..\src\framework\Platform\Define.h" />
<ClInclude Include="..\..\src\framework\Policies\CreationPolicy.h" />

View file

@ -607,14 +607,6 @@
>
</File>
</Filter>
<Filter
Name="Network"
>
<File
RelativePath="..\..\src\framework\Network\SocketDefines.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>

View file

@ -612,14 +612,6 @@
>
</File>
</Filter>
<Filter
Name="Network"
>
<File
RelativePath="..\..\src\framework\Network\SocketDefines.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>