Guard NOMINMAX ifdef (#3906)

This commit is contained in:
R. Savchenko 2023-01-24 07:42:43 +01:00 committed by GitHub
parent b941a20b8c
commit 079b50e0c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -26,15 +26,17 @@
#endif
// disable min/max macros
#define NOMINMAX
#if !defined(NOMINMAX)
#define NOMINMAX
#endif
#if !defined(POCO_NO_WINDOWS_H)
#include <windows.h>
#ifdef __MINGW32__
#include <winsock2.h>
#include <iphlpapi.h>
#include <ws2tcpip.h>
#endif // __MINGW32__
#include <windows.h>
#ifdef __MINGW32__
#include <winsock2.h>
#include <iphlpapi.h>
#include <ws2tcpip.h>
#endif // __MINGW32__
#endif

View File

@ -12,7 +12,6 @@
//
#define NOMINMAX
#include "Poco/Net/WebSocketImpl.h"
#include "Poco/Net/NetException.h"
#include "Poco/Net/WebSocket.h"