mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix two more Windows/MinGW compile errors
- net_platform.hpp: guard ssize_t typedef with !__MINGW32__ since MinGW-w64 already defines ssize_t as __int64 in corecrt.h - logger.hpp: push/pop ERROR macro around LogLevel enum (same wingdi.h clash as world_packets.hpp)
This commit is contained in:
parent
254486d428
commit
456aa90eda
2 changed files with 10 additions and 1 deletions
|
|
@ -11,7 +11,9 @@
|
|||
#pragma comment(lib, "ws2_32.lib")
|
||||
|
||||
using socket_t = SOCKET;
|
||||
using ssize_t = int; // recv/send return int on Windows
|
||||
#ifndef __MINGW32__
|
||||
using ssize_t = int; // recv/send return int on MSVC
|
||||
#endif
|
||||
|
||||
inline constexpr socket_t INVALID_SOCK = INVALID_SOCKET;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue