Stop including multiple windows headers when we use pch

This commit is contained in:
Racc 2026-03-16 12:24:35 +00:00
parent 982b4e348f
commit 652c01e25c
7 changed files with 4 additions and 18 deletions

View file

@ -18,8 +18,6 @@
#endif
#ifdef _WINDOWS64
#include <windows.h>
#include "Xbox\Resource.h"
#endif

View file

@ -26,15 +26,10 @@
#define GDRAW_ASSERTS
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
// We temporarily disable this warning for the shared interface portions
#pragma warning (push)
#pragma warning (disable: 4201) // nonstandard extension used : nameless struct/union
#include <windows.h>
#include <d3d11_x.h> // 4J changed to use monolithic version
#include "gdraw.h"
#include "iggy.h"

View file

@ -26,15 +26,10 @@
#define GDRAW_ASSERTS
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
// We temporarily disable this warning for the shared interface portions
#pragma warning (push)
#pragma warning (disable: 4201) // nonstandard extension used : nameless struct/union
#include <windows.h>
#include <d3d11.h>
#include "gdraw.h"
#include "iggy.h"

View file

@ -2,8 +2,6 @@
#ifdef _WINDOWS64
#include <windows.h>
class KeyboardMouseInput
{
public:

View file

@ -23,6 +23,7 @@
#ifdef _WINDOWS64
#define _HAS_STD_BYTE 0 // solve (std::)'byte' ambiguity with windows headers
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define NOMINMAX // Exclude min/max macros from Windows headers
// Windows Header Files:
#include <malloc.h>
#include <tchar.h>
@ -139,6 +140,7 @@ typedef XUID GameSessionUID;
#include <sstream>
#include <iostream>
#include <exception>
#include <mutex>
#include <assert.h>

View file

@ -7,6 +7,7 @@
#ifdef _WINDOWS64
#define _HAS_STD_BYTE 0 // solve (std::)'byte' ambiguity with windows headers
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define NOMINMAX // Exclude min/max macros from Windows headers
// Windows Header Files:
#include <windows.h>
#include <malloc.h>
@ -105,6 +106,7 @@ typedef XUID GameSessionUID;
#include <sstream>
#include <iostream>
#include <exception>
#include <array>
#ifndef __PS3__ // the PS3 lib assert is rubbish, and aborts the code, we define our own in PS3Types.h
#include <assert.h>

View file

@ -1,10 +1,6 @@
#include "stdafx.h"
#include "lce_filesystem.h"
#ifdef _WINDOWS64
#include <windows.h>
#endif // TODO: More os' filesystem handling for when the project moves away from only Windows
#include <stdio.h>
bool FileOrDirectoryExists(const char* path)