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
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define mode_t unsigned short
|
using mode_t = unsigned short;
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
11
src/http.cpp
11
src/http.cpp
@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
#define __USE_W32_SOCKETS
|
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "futils.hpp"
|
#include "futils.hpp"
|
||||||
#include "http.hpp"
|
#include "http.hpp"
|
||||||
|
|
||||||
@ -32,10 +27,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
|
||||||
#define fopen_S(f, n, o) f = fopen(n, o)
|
|
||||||
#define WINAPI
|
|
||||||
using DWORD = unsigned long;
|
|
||||||
|
|
||||||
#define SOCKET_ERROR (-1)
|
#define SOCKET_ERROR (-1)
|
||||||
#define WSAEWOULDBLOCK EINPROGRESS
|
#define WSAEWOULDBLOCK EINPROGRESS
|
||||||
#define WSAENOTCONN EAGAIN
|
#define WSAENOTCONN EAGAIN
|
||||||
@ -43,6 +34,8 @@ using DWORD = unsigned long;
|
|||||||
static int WSAGetLastError() {
|
static int WSAGetLastError() {
|
||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#include <winsock2.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
|
|||||||
@ -16,9 +16,9 @@
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#define BYTE char
|
using BYTE = char;
|
||||||
#define USHORT uint16_t
|
using USHORT = uint16_t;
|
||||||
#define ULONG uint32_t
|
using ULONG = uint32_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "fff.h"
|
#include "fff.h"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user