[Project64] Remove #include <objbase.h> from Common/Trace.h
This commit is contained in:
parent
dca4399567
commit
e7f93f2def
|
@ -1,4 +1,7 @@
|
|||
#include "stdafx.h"
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
CriticalSection::CriticalSection()
|
||||
{
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#include "stdafx.h"
|
||||
#include "HighResTimeStamp.h"
|
||||
#ifndef _WIN32
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#else
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#include "stdafx.h"
|
||||
#include "Thread.h"
|
||||
#ifndef _WIN32
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/syscall.h>
|
||||
|
|
|
@ -11,9 +11,7 @@ enum TraceSeverity
|
|||
TraceVerbose = 0x00000006,
|
||||
};
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <objbase.h>
|
||||
#else
|
||||
#ifndef _WIN32
|
||||
#define __interface struct
|
||||
#endif
|
||||
|
||||
|
|
|
@ -249,6 +249,10 @@ EXPORT void CALL ProcessAList(void)
|
|||
WriteTrace(TraceAudioInterface, TraceDebug, "Called");
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
extern "C" void UseUnregisteredSetting(int /*SettingID*/)
|
||||
{
|
||||
WriteTrace(TraceAudioInterface, TraceDebug, "Called");
|
||||
|
|
|
@ -133,11 +133,7 @@ bool CFlashram::LoadFlashram()
|
|||
|
||||
if (!m_File.Open(FileName, (m_ReadOnly ? CFileBase::modeRead : CFileBase::modeReadWrite) | CFileBase::modeNoTruncate | CFileBase::modeCreate))
|
||||
{
|
||||
#ifdef _WIN32
|
||||
WriteTrace(TraceN64System, TraceError, "Failed to open (%s), ReadOnly = %d, LastError = %X", (const char *)FileName, m_ReadOnly, GetLastError());
|
||||
#else
|
||||
WriteTrace(TraceN64System, TraceError, "Failed to open (%s), ReadOnly = %d", (const char *)FileName, m_ReadOnly);
|
||||
#endif
|
||||
g_Notify->DisplayError(GS(MSG_FAIL_OPEN_FLASH));
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -36,11 +36,7 @@ bool CSram::LoadSram()
|
|||
|
||||
if (!m_File.Open(FileName, (m_ReadOnly ? CFileBase::modeRead : CFileBase::modeReadWrite) | CFileBase::modeNoTruncate | CFileBase::modeCreate))
|
||||
{
|
||||
#ifdef _WIN32
|
||||
WriteTrace(TraceN64System, TraceError, "Failed to open (%s), ReadOnly = %d, LastError = %X", (const char *)FileName, m_ReadOnly, GetLastError());
|
||||
#else
|
||||
WriteTrace(TraceN64System, TraceError, "Failed to open (%s), ReadOnly = %d", (const char *)FileName, m_ReadOnly);
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
m_File.SeekToBegin();
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "ScreenResolution.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#include <commctrl.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -11,7 +11,9 @@
|
|||
#include "ScreenResolution.h"
|
||||
#include "settings.h"
|
||||
#include "trace.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
#ifdef ANDROID
|
||||
#include <Common/StdString.h>
|
||||
#include <vector>
|
||||
|
|
Loading…
Reference in New Issue