Merge pull request #582 from sidaf/fix_windows

Cross-compile Windows Fix
This commit is contained in:
Leonid Stryzhevskyi 2022-04-27 14:51:25 +03:00 committed by GitHub
commit 2f975359c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View File

@ -25,7 +25,7 @@
#include "IODefinitions.hpp"
#if defined(WIN32) || defined(_WIN32)
#include <WinSock2.h>
#include <winsock2.h>
#endif
namespace oatpp {

View File

@ -33,7 +33,7 @@
#include <cstdarg>
#if defined(WIN32) || defined(_WIN32)
#include <WinSock2.h>
#include <winsock2.h>
struct tm* localtime_r(time_t *_clock, struct tm *_result) {
localtime_s(_result, _clock);

View File

@ -25,7 +25,7 @@
#include "Hex.hpp"
#if defined(WIN32) || defined(_WIN32)
#include <WinSock2.h>
#include <winsock2.h>
#else
#include <arpa/inet.h>
#endif

View File

@ -25,7 +25,7 @@
#include "Unicode.hpp"
#if defined(WIN32) || defined(_WIN32)
#include <Winsock2.h>
#include <winsock2.h>
#else
#include <arpa/inet.h>
#endif

View File

@ -26,7 +26,7 @@
#if defined(WIN32) || defined(_WIN32)
#include <io.h>
#include <WinSock2.h>
#include <winsock2.h>
#else
#include <unistd.h>
#include <sys/socket.h>

View File

@ -31,8 +31,8 @@
#if defined(WIN32) || defined(_WIN32)
#include <io.h>
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <netdb.h>
#include <arpa/inet.h>

View File

@ -30,8 +30,8 @@
#if defined(WIN32) || defined(_WIN32)
#include <io.h>
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <netdb.h>
#include <arpa/inet.h>