Add missing includes where headers depend on other headers having been included first.

This is good hygiene, and also happens to be required to build Dolphin
using Clang modules.

(Under this setup, each header file becomes a module, and each #include
is automatically translated to a module import.  Recursive includes
still leak through (by default), but modules are compiled independently,
and can't depend on defines or types having previously been set up.  The
main reason to retrofit it onto Dolphin is compilation performance - no
more textual includes whatsoever, rather than putting a few blessed
common headers into a PCH.  Unfortunately, I found multiple Clang bugs
while trying to build Dolphin this way, so it's not ready yet, but I can
start with this prerequisite.)
This commit is contained in:
comex
2014-10-21 02:01:38 -04:00
parent 78deebd732
commit 6e774f1b64
50 changed files with 90 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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