Merge pull request #4726 from ligfx/addingwindowsheaders
Fix building without PCH on Windows
This commit is contained in:
commit
f70a1a27fa
|
@ -45,10 +45,12 @@ DerivePointerAlignment: false
|
||||||
DisableFormat: false
|
DisableFormat: false
|
||||||
ForEachMacros: []
|
ForEachMacros: []
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
- Regex: '^<'
|
- Regex: '^<[Ww]indows\.h>$'
|
||||||
Priority: 1
|
Priority: 1
|
||||||
- Regex: '^"'
|
- Regex: '^<'
|
||||||
Priority: 2
|
Priority: 2
|
||||||
|
- Regex: '^"'
|
||||||
|
Priority: 3
|
||||||
IndentCaseLabels: false
|
IndentCaseLabels: false
|
||||||
IndentWidth: 2
|
IndentWidth: 2
|
||||||
IndentWrappedFunctionNames: false
|
IndentWrappedFunctionNames: false
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
struct StreamingVoiceContext;
|
struct StreamingVoiceContext;
|
||||||
struct IXAudio2;
|
struct IXAudio2;
|
||||||
struct IXAudio2MasteringVoice;
|
struct IXAudio2MasteringVoice;
|
||||||
|
|
|
@ -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."
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -6,20 +6,20 @@
|
||||||
#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>
|
||||||
|
|
||||||
// clang-format off
|
|
||||||
#include <windows.h>
|
#include <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 <initguid.h>
|
|
||||||
// initguid.h must be included before Devpkey.h
|
|
||||||
#include <Devpkey.h>
|
|
||||||
#include <dbt.h>
|
#include <dbt.h>
|
||||||
|
#include <hidsdi.h>
|
||||||
#include <setupapi.h>
|
#include <setupapi.h>
|
||||||
|
|
||||||
|
// initguid.h must be included before Devpkey.h
|
||||||
|
// clang-format off
|
||||||
|
#include <initguid.h>
|
||||||
|
#include <Devpkey.h>
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
#include "Common/CommonFuncs.h"
|
#include "Common/CommonFuncs.h"
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,8 @@
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
// clang-format off
|
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <SetupAPI.h>
|
#include <SetupAPI.h>
|
||||||
// clang-format on
|
|
||||||
|
|
||||||
namespace ciface
|
namespace ciface
|
||||||
{
|
{
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ bool AVIDump::Start(int w, int h)
|
||||||
s_last_pts = 0;
|
s_last_pts = 0;
|
||||||
|
|
||||||
InitAVCodec();
|
InitAVCodec();
|
||||||
bool success = CreateFile();
|
bool success = CreateVideoFile();
|
||||||
if (!success)
|
if (!success)
|
||||||
{
|
{
|
||||||
CloseFile();
|
CloseFile();
|
||||||
|
@ -79,7 +79,7 @@ bool AVIDump::Start(int w, int h)
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AVIDump::CreateFile()
|
bool AVIDump::CreateVideoFile()
|
||||||
{
|
{
|
||||||
AVCodec* codec = nullptr;
|
AVCodec* codec = nullptr;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
class AVIDump
|
class AVIDump
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
static bool CreateFile();
|
static bool CreateVideoFile();
|
||||||
static void CloseFile();
|
static void CloseFile();
|
||||||
static void CheckResolution(int width, int height);
|
static void CheckResolution(int width, int height);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue