Skip to content

Commit

Permalink
[9336] Use single FD_SETSIZE define
Browse files Browse the repository at this point in the history
* Remove unused framework/Network/SocketDefines.h
* Make sure that we have single FD_SETSIZE define in code
  • Loading branch information
VladimirMangos committed Feb 8, 2010
1 parent 404c853 commit f1fb382
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 67 deletions.
1 change: 0 additions & 1 deletion src/framework/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
46 changes: 0 additions & 46 deletions src/framework/Network/SocketDefines.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/shared/Database/DatabaseMysql.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/shared/Database/QueryResultMysql.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9335"
#define REVISION_NR "9336"
#endif // __REVISION_NR_H__
1 change: 0 additions & 1 deletion win/VC100/framework.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
8 changes: 0 additions & 8 deletions win/VC80/framework.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -607,14 +607,6 @@
>
</File>
</Filter>
<Filter
Name="Network"
>
<File
RelativePath="..\..\src\framework\Network\SocketDefines.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
Expand Down
8 changes: 0 additions & 8 deletions win/VC90/framework.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -612,14 +612,6 @@
>
</File>
</Filter>
<Filter
Name="Network"
>
<File
RelativePath="..\..\src\framework\Network\SocketDefines.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
Expand Down

0 comments on commit f1fb382

Please sign in to comment.