Detect Windows using _WIN32 in network util

For consistency, always use _WIN32 instead of a mix of __WINDOWS__ and
_WIN32.
This commit is contained in:
Romain Vimont
2022-07-27 14:53:15 +02:00
parent db8c1ce8e1
commit a47848f304
2 changed files with 9 additions and 11 deletions

View File

@@ -5,9 +5,8 @@
#include <stdbool.h>
#include <stdint.h>
#include <SDL2/SDL_platform.h>
#ifdef __WINDOWS__
#ifdef _WIN32
# include <winsock2.h>
# include <stdatomic.h>
@@ -17,7 +16,7 @@
atomic_flag closed;
} *sc_socket;
#else // not __WINDOWS__
#else // not _WIN32
# include <sys/socket.h>
# define SC_SOCKET_NONE -1