1
0
forked from fsfw/fsfw

some more preprocessor replacements

This commit is contained in:
2021-05-12 17:32:40 +02:00
parent 14027e449c
commit 4095be449a
3 changed files with 6 additions and 15 deletions

View File

@ -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;