WIN32 macro -> _WIN32

This commit is contained in:
Connor McLaughlin
2021-06-28 20:16:48 +10:00
parent 489de3f9ce
commit 911e9a37f1
41 changed files with 123 additions and 123 deletions

View File

@ -3,7 +3,7 @@
#include "common/log.h"
Log_SetChannel(CubebAudioStream);
#ifdef WIN32
#ifdef _WIN32
#include "common/windows_headers.h"
#include <objbase.h>
#pragma comment(lib, "Ole32.lib")
@ -21,7 +21,7 @@ bool CubebAudioStream::OpenDevice()
{
Assert(!IsOpen());
#ifdef WIN32
#ifdef _WIN32
HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
m_com_initialized_by_us = SUCCEEDED(hr);
if (FAILED(hr) && hr != RPC_E_CHANGED_MODE && hr != S_FALSE)
@ -150,7 +150,7 @@ void CubebAudioStream::DestroyContext()
cubeb_destroy(m_cubeb_context);
m_cubeb_context = nullptr;
#ifdef WIN32
#ifdef _WIN32
if (m_com_initialized_by_us)
CoUninitialize();
#endif