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
|
||||
ForEachMacros: []
|
||||
IncludeCategories:
|
||||
- Regex: '^<'
|
||||
- Regex: '^<[Ww]indows\.h>$'
|
||||
Priority: 1
|
||||
- Regex: '^"'
|
||||
- Regex: '^<'
|
||||
Priority: 2
|
||||
- Regex: '^"'
|
||||
Priority: 3
|
||||
IndentCaseLabels: false
|
||||
IndentWidth: 2
|
||||
IndentWrappedFunctionNames: false
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
struct StreamingVoiceContext;
|
||||
struct IXAudio2;
|
||||
struct IXAudio2MasteringVoice;
|
||||
|
|
|
@ -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."
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
#include <string>
|
||||
#include "Common/GL/GLInterfaceBase.h"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
#include "Common/CommonFuncs.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,20 +6,20 @@
|
|||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <hidsdi.h>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
|
||||
// clang-format off
|
||||
#include <windows.h>
|
||||
// The following Windows headers must be included AFTER windows.h.
|
||||
#include <BluetoothAPIs.h>
|
||||
#include <Cfgmgr32.h>
|
||||
#include <initguid.h>
|
||||
// initguid.h must be included before Devpkey.h
|
||||
#include <Devpkey.h>
|
||||
#include <dbt.h>
|
||||
#include <hidsdi.h>
|
||||
#include <setupapi.h>
|
||||
|
||||
// initguid.h must be included before Devpkey.h
|
||||
// clang-format off
|
||||
#include <initguid.h>
|
||||
#include <Devpkey.h>
|
||||
// clang-format on
|
||||
|
||||
#include "Common/CommonFuncs.h"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -6,10 +6,8 @@
|
|||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
// clang-format off
|
||||
#include <Windows.h>
|
||||
#include <SetupAPI.h>
|
||||
// clang-format on
|
||||
|
||||
namespace ciface
|
||||
{
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <XInput.h>
|
||||
#include <windows.h>
|
||||
#include <XInput.h>
|
||||
|
||||
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ bool AVIDump::Start(int w, int h)
|
|||
s_last_pts = 0;
|
||||
|
||||
InitAVCodec();
|
||||
bool success = CreateFile();
|
||||
bool success = CreateVideoFile();
|
||||
if (!success)
|
||||
{
|
||||
CloseFile();
|
||||
|
@ -79,7 +79,7 @@ bool AVIDump::Start(int w, int h)
|
|||
return success;
|
||||
}
|
||||
|
||||
bool AVIDump::CreateFile()
|
||||
bool AVIDump::CreateVideoFile()
|
||||
{
|
||||
AVCodec* codec = nullptr;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
class AVIDump
|
||||
{
|
||||
private:
|
||||
static bool CreateFile();
|
||||
static bool CreateVideoFile();
|
||||
static void CloseFile();
|
||||
static void CheckResolution(int width, int height);
|
||||
|
||||
|
|
Loading…
Reference in New Issue