WIN32 macro -> _WIN32
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
// #define USE_WIN32_EVENT_OBJECTS 1
|
||||
|
||||
#if defined(WIN32) && !defined(USE_WIN32_EVENT_OBJECTS)
|
||||
#if defined(_WIN32) && !defined(USE_WIN32_EVENT_OBJECTS)
|
||||
#include "windows_headers.h"
|
||||
#include <atomic>
|
||||
#elif defined(__linux__) || defined(__APPLE__) || defined(__HAIKU__)
|
||||
@@ -31,9 +31,9 @@ public:
|
||||
static void WaitForMultiple(Event** events, u32 num_events);
|
||||
|
||||
private:
|
||||
#if defined(WIN32) && defined(USE_WIN32_EVENT_OBJECTS)
|
||||
#if defined(_WIN32) && defined(USE_WIN32_EVENT_OBJECTS)
|
||||
void* m_event_handle;
|
||||
#elif defined(WIN32)
|
||||
#elif defined(_WIN32)
|
||||
CRITICAL_SECTION m_cs;
|
||||
CONDITION_VARIABLE m_cv;
|
||||
std::atomic_uint32_t m_waiters{0};
|
||||
|
||||
Reference in New Issue
Block a user