mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-24 19:39:47 +00:00
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
31
project/lib_projects/raknet/jni/RaknetSources/SocketIncludes.h
Executable file
31
project/lib_projects/raknet/jni/RaknetSources/SocketIncludes.h
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
// All this crap just to include type SOCKET
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#if defined(_WIN32)
|
||||
typedef int socklen_t;
|
||||
// IP_DONTFRAGMENT is different between winsock 1 and winsock 2. Therefore, Winsock2.h must be linked againt Ws2_32.lib
|
||||
// winsock.h must be linked against WSock32.lib. If these two are mixed up the flag won't work correctly
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#define closesocket close
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#define INVALID_SOCKET -1
|
||||
//#include "RakMemoryOverride.h"
|
||||
/// Unix/Linux uses ints for sockets
|
||||
typedef int SOCKET;
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue