some more preprocessor replacements
This commit is contained in:
@ -5,13 +5,9 @@
|
||||
#include "../../platform.h"
|
||||
|
||||
#ifdef PLATFORM_WIN
|
||||
|
||||
#include <winsock2.h>
|
||||
|
||||
#elif defined(PLATFORM_UNIX)
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
#endif
|
||||
|
||||
class TcpIpBase {
|
||||
@ -23,7 +19,7 @@ protected:
|
||||
static constexpr int SHUT_BOTH = SD_BOTH;
|
||||
|
||||
using socket_t = SOCKET;
|
||||
#elif defined(__unix__)
|
||||
#elif defined(PLATFORM_UNIX)
|
||||
using socket_t = int;
|
||||
|
||||
static constexpr int INVALID_SOCKET = -1;
|
||||
|
Reference in New Issue
Block a user