mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2025-01-03 05:22:24 +08:00
Merge pull request #582 from sidaf/fix_windows
Cross-compile Windows Fix
This commit is contained in:
commit
2f975359c5
@ -25,7 +25,7 @@
|
|||||||
#include "IODefinitions.hpp"
|
#include "IODefinitions.hpp"
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#include <WinSock2.h>
|
#include <winsock2.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace oatpp {
|
namespace oatpp {
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#include <WinSock2.h>
|
#include <winsock2.h>
|
||||||
|
|
||||||
struct tm* localtime_r(time_t *_clock, struct tm *_result) {
|
struct tm* localtime_r(time_t *_clock, struct tm *_result) {
|
||||||
localtime_s(_result, _clock);
|
localtime_s(_result, _clock);
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "Hex.hpp"
|
#include "Hex.hpp"
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#include <WinSock2.h>
|
#include <winsock2.h>
|
||||||
#else
|
#else
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "Unicode.hpp"
|
#include "Unicode.hpp"
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#include <Winsock2.h>
|
#include <winsock2.h>
|
||||||
#else
|
#else
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <WinSock2.h>
|
#include <winsock2.h>
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
@ -31,8 +31,8 @@
|
|||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <WinSock2.h>
|
#include <winsock2.h>
|
||||||
#include <WS2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#else
|
#else
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <WinSock2.h>
|
#include <winsock2.h>
|
||||||
#include <WS2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#else
|
#else
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user