Finish converting to SOCKET type in _WIN32 code

fixes c048a21
This commit is contained in:
pstef 2025-04-11 22:47:58 +00:00
parent 66aa1424f0
commit d6cc1847bf
2 changed files with 8 additions and 3 deletions

View File

@ -62,9 +62,6 @@
#include "../verbosity.h"
#include "../ai/game_ai.h"
#if defined(_WIN32)
#include <winsock2.h>
#endif
#define HOLD_BTN_DELAY_SEC 2

View File

@ -32,6 +32,10 @@
#include "../config.h"
#endif /* HAVE_CONFIG_H */
#if defined(_WIN32) && !defined(SOCKET)
#include <winsock2.h>
#endif
#include "input_defines.h"
#include "input_types.h"
#ifdef HAVE_OVERLAY
@ -284,7 +288,11 @@ struct remote_message
struct input_remote
{
#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD)
#ifdef _WIN32
SOCKET net_fd[MAX_USERS];
#else
int net_fd[MAX_USERS];
#endif
#endif
bool state[RARCH_BIND_LIST_END];
};