summaryrefslogtreecommitdiff
path: root/src/enet/win32.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-24 17:47:39 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-24 17:47:39 +0300
commit4ef35e9ef757da1db724c5d784048601144c934c (patch)
treec683545ec5c2bc43d619eb9de994659ae88405b0 /src/enet/win32.h
parent05abb208b47329b60a3cbbef86f8bc88f91ab5de (diff)
downloadmv-4ef35e9ef757da1db724c5d784048601144c934c.tar.gz
mv-4ef35e9ef757da1db724c5d784048601144c934c.tar.bz2
mv-4ef35e9ef757da1db724c5d784048601144c934c.tar.xz
mv-4ef35e9ef757da1db724c5d784048601144c934c.zip
Remove enet code from sources.
It only need for manaserv server type, but manaserv still in long development.
Diffstat (limited to 'src/enet/win32.h')
-rw-r--r--src/enet/win32.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/enet/win32.h b/src/enet/win32.h
deleted file mode 100644
index 0e1cf0c5a..000000000
--- a/src/enet/win32.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- @file win32.h
- @brief ENet Win32 header
-*/
-#ifndef __ENET_WIN32_H__
-#define __ENET_WIN32_H__
-
-#ifdef ENET_BUILDING_LIB
-#pragma warning (disable: 4996) // 'strncpy' was declared deprecated
-#pragma warning (disable: 4267) // size_t to int conversion
-#pragma warning (disable: 4244) // 64bit to 32bit int
-#pragma warning (disable: 4018) // signed/unsigned mismatch
-#endif
-
-#include <stdlib.h>
-#include <winsock2.h>
-
-typedef SOCKET ENetSocket;
-
-enum
-{
- ENET_SOCKET_NULL = INVALID_SOCKET
-};
-
-#define ENET_HOST_TO_NET_16(value) (htons (value))
-#define ENET_HOST_TO_NET_32(value) (htonl (value))
-
-#define ENET_NET_TO_HOST_16(value) (ntohs (value))
-#define ENET_NET_TO_HOST_32(value) (ntohl (value))
-
-typedef struct
-{
- size_t dataLength;
- void * data;
-} ENetBuffer;
-
-#define ENET_CALLBACK __cdecl
-
-#if defined ENET_DLL
-#if defined ENET_BUILDING_LIB
-#define ENET_API __declspec( dllexport )
-#else
-#define ENET_API __declspec( dllimport )
-#endif /* ENET_BUILDING_LIB */
-#else /* !ENET_DLL */
-#define ENET_API extern
-#endif /* ENET_DLL */
-
-typedef fd_set ENetSocketSet;
-
-#define ENET_SOCKETSET_EMPTY(sockset) FD_ZERO (& (sockset))
-#define ENET_SOCKETSET_ADD(sockset, socket) FD_SET (socket, & (sockset))
-#define ENET_SOCKETSET_REMOVE(sockset, socket) FD_CLEAR (socket, & (sockset))
-#define ENET_SOCKETSET_CHECK(sockset, socket) FD_ISSET (socket, & (sockset))
-
-#endif /* __ENET_WIN32_H__ */
-
-