mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix three Windows-specific compile errors
- logger.cpp: use localtime_s on Windows (reversed arg order vs localtime_r) - process.hpp: drop constexpr on INVALID_PROCESS (INVALID_HANDLE_VALUE is a reinterpret_cast, not valid in constexpr context) - world_packets.hpp: push/pop ERROR macro around CharCreateResult enum to avoid clash with wingdi.h #define ERROR 0
This commit is contained in:
parent
aba701aeda
commit
f67a6f1692
3 changed files with 13 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
#include <windows.h>
|
||||
|
||||
using ProcessHandle = HANDLE;
|
||||
inline constexpr ProcessHandle INVALID_PROCESS = INVALID_HANDLE_VALUE;
|
||||
inline const ProcessHandle INVALID_PROCESS = INVALID_HANDLE_VALUE;
|
||||
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue