mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
And yet another ... :)
This commit is contained in:
parent
dd89e6fbe0
commit
e134f8afc7
36
netplay.c
36
netplay.c
@ -15,6 +15,25 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#ifndef _WIN32_WINNT
|
||||||
|
#define _WIN32_WINNT 0x0501
|
||||||
|
#endif
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <winsock2.h>
|
||||||
|
#include <windows.h>
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
#else
|
||||||
|
#include <sys/select.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/tcp.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#include <netdb.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "netplay.h"
|
#include "netplay.h"
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
#include "autosave.h"
|
#include "autosave.h"
|
||||||
@ -25,32 +44,17 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifndef _WIN32_WINNT
|
|
||||||
#define _WIN32_WINNT 0x0501
|
|
||||||
#endif
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#include <winsock2.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#include <ws2tcpip.h>
|
|
||||||
// Woohoo, Winsock has headers from the STONE AGE! :D
|
// Woohoo, Winsock has headers from the STONE AGE! :D
|
||||||
#define close(x) closesocket(x)
|
#define close(x) closesocket(x)
|
||||||
#define CONST_CAST (const char*)
|
#define CONST_CAST (const char*)
|
||||||
#define NONCONST_CAST (char*)
|
#define NONCONST_CAST (char*)
|
||||||
#else
|
#else
|
||||||
#include <sys/select.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <netinet/tcp.h>
|
|
||||||
#include <arpa/inet.h>
|
|
||||||
#include <netdb.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#define CONST_CAST
|
#define CONST_CAST
|
||||||
#define NONCONST_CAST
|
#define NONCONST_CAST
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define PREV_PTR(x) ((x) == 0 ? handle->buffer_size - 1 : (x) - 1)
|
#define PREV_PTR(x) ((x) == 0 ? handle->buffer_size - 1 : (x) - 1)
|
||||||
#define NEXT_PTR(x) ((x + 1) % handle->buffer_size)
|
#define NEXT_PTR(x) ((x + 1) % handle->buffer_size)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user