mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-11 18:26:10 +00:00
works but linux build is broken and this is an old version of the source
This commit is contained in:
19
include/linuxfixes.h
Normal file
19
include/linuxfixes.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef _LINUXFIXES_H
|
||||
#define _LINUXFIXES_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// Translate windows sockets stuff to linux sockets
|
||||
#define SOCKET uint64_t
|
||||
#define SOCKADDR sockaddr
|
||||
#define SOCKADDR_IN sockaddr_in
|
||||
#define WSAGetLastError() errno
|
||||
#define closesocket close
|
||||
#define SD_BOTH SHUT_RDWR
|
||||
// We dont need wsacleanup
|
||||
#define WSACleanup()
|
||||
#define SOCKET_ERROR -1
|
||||
|
||||
#define ZeroMemory(mem, len) memset(mem, 0, len)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user