remove some unused defines.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
d50d9527b5
commit
25189ef1e6
@ -37,7 +37,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define mode_t unsigned short
|
||||
using mode_t = unsigned short;
|
||||
#include <io.h>
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
11
src/http.cpp
11
src/http.cpp
@ -2,11 +2,6 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define __USE_W32_SOCKETS
|
||||
#include <winsock2.h>
|
||||
#endif
|
||||
|
||||
#include "futils.hpp"
|
||||
#include "http.hpp"
|
||||
|
||||
@ -32,10 +27,6 @@
|
||||
#include <unistd.h>
|
||||
#include <cerrno>
|
||||
|
||||
#define fopen_S(f, n, o) f = fopen(n, o)
|
||||
#define WINAPI
|
||||
using DWORD = unsigned long;
|
||||
|
||||
#define SOCKET_ERROR (-1)
|
||||
#define WSAEWOULDBLOCK EINPROGRESS
|
||||
#define WSAENOTCONN EAGAIN
|
||||
@ -43,6 +34,8 @@ using DWORD = unsigned long;
|
||||
static int WSAGetLastError() {
|
||||
return errno;
|
||||
}
|
||||
#else
|
||||
#include <winsock2.h>
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#define BYTE char
|
||||
#define USHORT uint16_t
|
||||
#define ULONG uint32_t
|
||||
using BYTE = char;
|
||||
using USHORT = uint16_t;
|
||||
using ULONG = uint32_t;
|
||||
#endif
|
||||
|
||||
#include "fff.h"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user