Merge pull request #1347 from comex/header-hygiene

Add missing includes where headers depend on other headers having been included first.
This commit is contained in:
comex 2014-10-22 23:23:58 -04:00
commit 00c6ec97a6
50 changed files with 90 additions and 7 deletions

View File

@ -3,7 +3,7 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "scmrev.h" #include "scmrev.h"
#include "Common/CommonTypes.h" #include "Common/Common.h"
#ifdef _DEBUG #ifdef _DEBUG
#define BUILD_TYPE_STR "Debug " #define BUILD_TYPE_STR "Debug "

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Common/CommonTypes.h"
u16 dsp_read_accelerator(); u16 dsp_read_accelerator();
u16 dsp_read_aram_d3(); u16 dsp_read_aram_d3();

View File

@ -4,7 +4,7 @@
#pragma once #pragma once
#include "Common/CommonTypes.h" #include "Common/Common.h"
// super fast breakpoints for a limited range. // super fast breakpoints for a limited range.
// To be used interchangeably with the BreakPoints class. // To be used interchangeably with the BreakPoints class.

View File

@ -4,6 +4,10 @@
#pragma once #pragma once
#include <string>
#include "Common/CommonTypes.h"
// The user of the DSPCore library must supply a few functions so that the // The user of the DSPCore library must supply a few functions so that the
// emulation core can access the environment it runs in. If the emulation // emulation core can access the environment it runs in. If the emulation
// core isn't used, for example in an asm/disasm tool, then most of these // core isn't used, for example in an asm/disasm tool, then most of these

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Common/CommonTypes.h"
struct PBMixer struct PBMixer
{ {
u16 left; u16 left;

View File

@ -4,5 +4,7 @@
#pragma once #pragma once
#include "Common/CommonTypes.h"
bool DumpDSPCode(const u8 *code_be, int size_in_bytes, u32 crc); bool DumpDSPCode(const u8 *code_be, int size_in_bytes, u32 crc);
bool DumpCWCode(u32 _Address, u32 _Length); bool DumpCWCode(u32 _Address, u32 _Length);

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Core/HW/EXI_Device.h"
class CEXIAD16 : public IEXIDevice class CEXIAD16 : public IEXIDevice
{ {
public: public:

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Core/HW/EXI_Device.h"
class CEXIAMBaseboard : public IEXIDevice class CEXIAMBaseboard : public IEXIDevice
{ {
public: public:

View File

@ -9,6 +9,7 @@
#endif #endif
#include "Common/Thread.h" #include "Common/Thread.h"
#include "Core/HW/EXI_Device.h"
// Network Control Register A // Network Control Register A
enum NCRA enum NCRA

View File

@ -11,6 +11,8 @@
#include "Common/Thread.h" #include "Common/Thread.h"
#include "Core/HW/EXI_Device.h"
class GeckoSockServer class GeckoSockServer
: public sf::SocketTCP : public sf::SocketTCP
{ {

View File

@ -4,6 +4,7 @@
#pragma once #pragma once
#include "Common/StdMakeUnique.h" #include "Common/StdMakeUnique.h"
#include "Core/HW/EXI_Device.h"
class MemoryCardBase; class MemoryCardBase;
class CEXIMemoryCard : public IEXIDevice class CEXIMemoryCard : public IEXIDevice

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Core/HW/EXI_Device.h"
#if HAVE_PORTAUDIO #if HAVE_PORTAUDIO
#include <mutex> #include <mutex>

View File

@ -5,6 +5,7 @@
#pragma once #pragma once
#include "Core/HW/GCMemcard.h" #include "Core/HW/GCMemcard.h"
#include "DiscIO/Volume.h"
// Uncomment this to write the system data of the memorycard from directory to disc // Uncomment this to write the system data of the memorycard from directory to disc
//#define _WRITE_MC_HEADER 1 //#define _WRITE_MC_HEADER 1

View File

@ -7,7 +7,7 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include "Common/CommonTypes.h" #include "Common/Common.h"
// All the templated and very repetitive MMIO-related code is isolated in this // All the templated and very repetitive MMIO-related code is isolated in this
// file for easier reading. It mostly contains code related to handling methods // file for easier reading. It mostly contains code related to handling methods

View File

@ -6,6 +6,7 @@
#include <string> #include <string>
#include "Common/CommonFuncs.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
// Enable memory checks in the Debug/DebugFast builds, but NOT in release // Enable memory checks in the Debug/DebugFast builds, but NOT in release

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Core/HW/SI_Device.h"
// triforce (GC-AM) baseboard // triforce (GC-AM) baseboard
class CSIDevice_AMBaseboard : public ISIDevice class CSIDevice_AMBaseboard : public ISIDevice
{ {

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Core/HW/SI_Device.h"
#include "SFML/Network.hpp" #include "SFML/Network.hpp"
// GameBoy Advance "Link Cable" // GameBoy Advance "Link Cable"

View File

@ -6,6 +6,8 @@
#pragma once #pragma once
#include "Common/CommonTypes.h"
// The key structure to use with WiimoteGenerateKey() // The key structure to use with WiimoteGenerateKey()
struct wiimote_key struct wiimote_key
{ {

View File

@ -4,6 +4,10 @@
#pragma once #pragma once
#include <string>
#include "Common/CommonTypes.h"
class IWII_IPC_HLE_Device; class IWII_IPC_HLE_Device;
class PointerWrap; class PointerWrap;

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Core/IPC_HLE/WII_IPC_HLE_Device.h"
class CWII_IPC_HLE_Device_usb_kbd : public IWII_IPC_HLE_Device class CWII_IPC_HLE_Device_usb_kbd : public IWII_IPC_HLE_Device
{ {
public: public:

View File

@ -6,6 +6,8 @@
#include <map> #include <map>
#include <string> #include <string>
#include "Common/Common.h"
#include "Core/IPC_HLE/hci.h" #include "Core/IPC_HLE/hci.h"
class CWII_IPC_HLE_Device_usb_oh1_57e_305; class CWII_IPC_HLE_Device_usb_oh1_57e_305;

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Common/CommonTypes.h"
#if 0 #if 0
struct SAttrib struct SAttrib
{ {

View File

@ -2388,6 +2388,7 @@ struct btreq {
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// Dolphin-custom structs (to kill) // Dolphin-custom structs (to kill)
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
#include "Common/CommonTypes.h"
struct SCommandMessage struct SCommandMessage
{ {
u16 Opcode; u16 Opcode;

View File

@ -8,6 +8,7 @@
#include <cinttypes> #include <cinttypes>
#include "Common/x64Emitter.h" #include "Common/x64Emitter.h"
#include "Core/PowerPC/PPCAnalyst.h"
enum FlushMode enum FlushMode
{ {

View File

@ -37,6 +37,10 @@
#error No context definition for OS #error No context definition for OS
#endif #endif
#elif defined(__APPLE__) && !defined(USE_SIGACTION_ON_APPLE) #elif defined(__APPLE__) && !defined(USE_SIGACTION_ON_APPLE)
// for modules:
#define _XOPEN_SOURCE
#include <ucontext.h>
#include <mach/mach.h> #include <mach/mach.h>
#include <mach/message.h> #include <mach/message.h>
#if _M_X86_64 #if _M_X86_64

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include <unordered_map>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/x64Analyzer.h" #include "Common/x64Analyzer.h"
#include "Common/x64Emitter.h" #include "Common/x64Emitter.h"

View File

@ -7,6 +7,8 @@
#include <string> #include <string>
#include "Common/CommonTypes.h"
#ifdef _WIN32 #ifdef _WIN32
#define PROFILER_QUERY_PERFORMANCE_COUNTER(pt) \ #define PROFILER_QUERY_PERFORMANCE_COUNTER(pt) \

View File

@ -10,6 +10,8 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "Common/CommonTypes.h"
namespace State namespace State
{ {

View File

@ -24,7 +24,7 @@
#pragma once #pragma once
#include "Common/CommonTypes.h" #include "Common/Common.h"
void get_ng_cert(u8* ng_cert_out, u32 NG_id, u32 NG_key_id, const u8* NG_priv, const u8* NG_sig); void get_ng_cert(u8* ng_cert_out, u32 NG_id, u32 NG_key_id, const u8* NG_priv, const u8* NG_sig);
void get_ap_sig_and_cert(u8 *sig_out, u8 *ap_cert_out, u64 title_id, u8 *data, u32 data_size, const u8 *NG_priv, u32 NG_id); void get_ap_sig_and_cert(u8 *sig_out, u8 *ap_cert_out, u64 title_id, u8 *data, u32 data_size, const u8 *NG_priv, u32 NG_id);

View File

@ -7,11 +7,12 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "Common/CommonTypes.h" #include "Common/Common.h"
#include "DiscIO/Volume.h" #include "DiscIO/Volume.h"
#if defined(HAVE_WX) && HAVE_WX #if defined(HAVE_WX) && HAVE_WX
#include <wx/image.h> #include <wx/image.h>
#include <wx/bitmap.h>
#endif #endif
class PointerWrap; class PointerWrap;

View File

@ -305,3 +305,4 @@ void LogConfigWindow::OnLogCheck(wxCommandEvent& event)
int i = event.GetInt(); int i = event.GetInt();
ToggleLog(i, m_checks->IsChecked(i)); ToggleLog(i, m_checks->IsChecked(i));
} }

View File

@ -12,10 +12,13 @@
#pragma once #pragma once
#include <atomic>
typedef LONG* LPLONG; // Missing type for ForceFeedback.h typedef LONG* LPLONG; // Missing type for ForceFeedback.h
#include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CoreFoundation.h>
#include <ForceFeedback/ForceFeedback.h> #include <ForceFeedback/ForceFeedback.h>
#include "DirectInputConstants.h" // Not stricty necessary #include "DirectInputConstants.h" // Not stricty necessary
#include "Common/CommonTypes.h" // for LONG
namespace ciface namespace ciface
{ {

View File

@ -4,6 +4,8 @@
#include <string> #include <string>
#include "Common/CommonTypes.h"
#include "VideoBackends/OGL/GLExtensions/ARB_blend_func_extended.h" #include "VideoBackends/OGL/GLExtensions/ARB_blend_func_extended.h"
#include "VideoBackends/OGL/GLExtensions/ARB_buffer_storage.h" #include "VideoBackends/OGL/GLExtensions/ARB_buffer_storage.h"
#include "VideoBackends/OGL/GLExtensions/ARB_debug_output.h" #include "VideoBackends/OGL/GLExtensions/ARB_debug_output.h"

View File

@ -1,6 +1,8 @@
#pragma once #pragma once
#include <array> #include <array>
#include "VideoBackends/OGL/GLExtensions/GLExtensions.h"
#include "VideoCommon/PerfQueryBase.h" #include "VideoCommon/PerfQueryBase.h"
namespace OGL namespace OGL

View File

@ -8,6 +8,7 @@
#include <unordered_map> #include <unordered_map>
#include "VideoBackends/OGL/GLUtil.h" #include "VideoBackends/OGL/GLUtil.h"
#include "VideoBackends/OGL/ProgramShaderCache.h"
#include "VideoCommon/PostProcessing.h" #include "VideoCommon/PostProcessing.h"
#include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoCommon.h"

View File

@ -6,6 +6,8 @@
#include <string> #include <string>
#include "Common/CommonTypes.h"
namespace OGL namespace OGL
{ {

View File

@ -4,7 +4,9 @@
#pragma once #pragma once
#include "VideoBackends/OGL/GLExtensions/GLExtensions.h"
#include "VideoCommon/CPMemory.h" #include "VideoCommon/CPMemory.h"
#include "VideoCommon/NativeVertexFormat.h"
#include "VideoCommon/VertexManagerBase.h" #include "VideoCommon/VertexManagerBase.h"
namespace OGL namespace OGL

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Common/Common.h"
namespace DebugUtil namespace DebugUtil
{ {
void Init(); void Init();

View File

@ -6,6 +6,7 @@
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "VideoBackends/Software/CPMemLoader.h" #include "VideoBackends/Software/CPMemLoader.h"
#include "VideoBackends/Software/NativeVertexFormat.h"
#include "VideoBackends/Software/SetupUnit.h" #include "VideoBackends/Software/SetupUnit.h"
#include "VideoBackends/Software/SWStatistics.h" #include "VideoBackends/Software/SWStatistics.h"
#include "VideoBackends/Software/SWVertexLoader.h" #include "VideoBackends/Software/SWVertexLoader.h"

View File

@ -5,7 +5,7 @@
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include "Common/CommonFuncs.h" #include "Common/Common.h"
#include "Core/HW/Memmap.h" #include "Core/HW/Memmap.h"
#include "VideoBackends/Software/BPMemLoader.h" #include "VideoBackends/Software/BPMemLoader.h"
#include "VideoBackends/Software/TextureSampler.h" #include "VideoBackends/Software/TextureSampler.h"

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Common/CommonTypes.h"
// all constant buffer attributes must be 16 bytes aligned, so this are the only allowed components: // all constant buffer attributes must be 16 bytes aligned, so this are the only allowed components:
typedef float float4[4]; typedef float float4[4];
typedef u32 uint4[4]; typedef u32 uint4[4];

View File

@ -4,6 +4,7 @@
#pragma once #pragma once
#include "Common/Common.h"
#include "VideoCommon/VertexManagerBase.h" #include "VideoCommon/VertexManagerBase.h"
extern u8* g_video_buffer_read_ptr; extern u8* g_video_buffer_read_ptr;

View File

@ -4,6 +4,9 @@
#pragma once #pragma once
#include <functional> // for hash
#include "Common/Common.h"
#include "Common/Hash.h" #include "Common/Hash.h"
// m_components // m_components

View File

@ -7,6 +7,8 @@
#include <functional> #include <functional>
#include <string> #include <string>
#include "Common/CommonTypes.h"
namespace OSD namespace OSD
{ {
// On-screen message display // On-screen message display

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "Common/CommonTypes.h"
#define GX_NOP 0x00 #define GX_NOP 0x00
#define GX_LOAD_BP_REG 0x61 #define GX_LOAD_BP_REG 0x61

View File

@ -4,6 +4,7 @@
#pragma once #pragma once
#include "Common/Common.h"
#include "Common/Hash.h" #include "Common/Hash.h"
enum enum

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "VideoCommon/NativeVertexFormat.h"
void LOADERDECL Color_ReadDirect_24b_888(); void LOADERDECL Color_ReadDirect_24b_888();
void LOADERDECL Color_ReadDirect_32b_888x(); void LOADERDECL Color_ReadDirect_32b_888x();
void LOADERDECL Color_ReadDirect_16b_565(); void LOADERDECL Color_ReadDirect_16b_565();

View File

@ -4,7 +4,7 @@
#pragma once #pragma once
#include "Common/CommonTypes.h" #include "VideoCommon/NativeVertexFormat.h"
class VertexLoader_Normal class VertexLoader_Normal
{ {

View File

@ -4,6 +4,8 @@
#pragma once #pragma once
#include "VideoCommon/NativeVertexFormat.h"
class VertexLoader_Position { class VertexLoader_Position {
public: public:

View File

@ -1,6 +1,7 @@
#pragma once #pragma once
#include <vector> #include <vector>
#include "Common/CommonFuncs.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
class NativeVertexFormat; class NativeVertexFormat;