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 #ifdef _WIN32
#include <windows.h>
struct StreamingVoiceContext; struct StreamingVoiceContext;
struct IXAudio2; struct IXAudio2;
struct IXAudio2MasteringVoice; struct IXAudio2MasteringVoice;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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