Add includes for building on Windows without PCH

This commit is contained in:
Michael Maltese 2017-01-22 23:08:45 -08:00
parent c3a1547d9a
commit 713ec5ffd5
15 changed files with 24 additions and 10 deletions

View File

@ -15,6 +15,8 @@
#ifdef _WIN32
#include <windows.h>
struct StreamingVoiceContext;
struct IXAudio2;
struct IXAudio2MasteringVoice;

View File

@ -8,8 +8,7 @@
#include <Windows.h>
#include "Common/Common.h"
#include "Common/Intrinsics.h"
#include "Common/CommonTypes.h"
// Atomic operations are performed in a single step by the CPU. It is
// impossible for other threads to see the operation "half-done."

View File

@ -20,12 +20,12 @@
#include "Common/Logging/Log.h"
#ifdef _WIN32
#include <windows.h>
#include <commdlg.h> // for GetSaveFileName
#include <direct.h> // getcwd
#include <io.h>
#include <objbase.h> // guid stuff
#include <shellapi.h>
#include <windows.h>
#else
#include <dirent.h>
#include <errno.h>

View File

@ -4,6 +4,7 @@
#pragma once
#include <windows.h>
#include <string>
#include "Common/GL/GLInterfaceBase.h"

View File

@ -2,7 +2,7 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include <debugapi.h>
#include <windows.h>
#include "Common/Logging/ConsoleListener.h"

View File

@ -13,8 +13,8 @@
#include "Common/MsgHandler.h"
#ifdef _WIN32
#include <psapi.h>
#include <windows.h>
#include <psapi.h>
#include "Common/StringUtil.h"
#else
#include <stdio.h>

View File

@ -8,6 +8,10 @@
#include "Common/CommonFuncs.h"
#ifdef _WIN32
#include <windows.h>
#endif
// Generic function to get last error message.
// Call directly after the command or use the error num.
// This function might change the error code.

View File

@ -12,6 +12,10 @@
#include "Common/MsgHandler.h"
#include "Common/StringUtil.h"
#ifdef _WIN32
#include <windows.h>
#endif
bool DefaultMsgHandler(const char* caption, const char* text, bool yes_no, int Style);
static MsgAlertHandler msg_handler = DefaultMsgHandler;
static bool AlertEnabled = true;

View File

@ -2,6 +2,7 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>

View File

@ -11,9 +11,9 @@
#include <string>
#ifdef _WIN32
#include <windows.h>
#include <mmsystem.h>
#include <sys/timeb.h>
#include <windows.h>
#include "Common/CommonFuncs.h" // snprintf
#endif

View File

@ -6,7 +6,9 @@
#include "Common/CommonFuncs.h"
#include "Common/CommonTypes.h"
#ifndef _WIN32
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif

View File

@ -7,9 +7,9 @@
#include <string>
#ifdef _WIN32
#include <windows.h>
#include <mmsystem.h>
#include <sys/timeb.h>
#include <windows.h>
#else
#include <sys/time.h>
#endif

View File

@ -6,7 +6,6 @@
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <hidsdi.h>
#include <unordered_map>
#include <unordered_set>
@ -15,6 +14,7 @@
// The following Windows headers must be included AFTER windows.h.
#include <BluetoothAPIs.h>
#include <Cfgmgr32.h>
#include <hidsdi.h>
#include <initguid.h>
// initguid.h must be included before Devpkey.h
#include <Devpkey.h>

View File

@ -4,6 +4,7 @@
#pragma once
#include <functional>
#include <string>
#include <vector>

View File

@ -9,8 +9,8 @@
#pragma once
#include <XInput.h>
#include <windows.h>
#include <XInput.h>
#include "InputCommon/ControllerInterface/ControllerInterface.h"