Skip to content

Commit 0abb9ac

Browse files
committed
Include Common/Platform.hpp in to the every precompiled header
Create precompiled header for xrMisc and xrMiscMath
1 parent a07ace1 commit 0abb9ac

File tree

49 files changed

+106
-167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+106
-167
lines changed

Externals/cximage/ximacfg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ extern "C" void* cxrealloc(void* ptr, size_t size);
77

88
#ifdef CXIMAGE_AS_SHARED_LIBRARY //must be defined in Release_Shared configuration
99

10+
#include "Common/Platform.hpp"
1011
// XXX: dirty hack.
1112
#undef max
1213
#undef min

src/Layers/xrAPI/stdafx.h

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,3 @@
1-
// stdafx.h : include file for standard system include files,
2-
// or project specific include files that are used frequently, but
3-
// are changed infrequently
4-
//
5-
61
#pragma once
72

8-
// Modify the following defines if you have to target a platform prior to the ones specified below.
9-
// Refer to MSDN for the latest info on corresponding values for different platforms.
10-
#ifndef WINVER // Allow use of features specific to Windows XP or later.
11-
#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.
12-
#endif
13-
14-
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
15-
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
16-
#endif
17-
18-
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
19-
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
20-
#endif
21-
22-
#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.
23-
#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE.
24-
#endif
25-
26-
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
27-
// Windows Header Files:
28-
#include <windows.h>
29-
30-
// TODO: reference additional headers your program requires here
3+
#include "Common/Platform.hpp"

src/Layers/xrRenderPC_R1/stdafx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#include "Common/Platform.hpp"
4+
35
#ifdef _DEBUG
46
#define D3D_DEBUG_INFO
57
#endif

src/Layers/xrRenderPC_R2/stdafx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#pragma once
66

7+
#include "Common/Platform.hpp"
8+
79
#ifdef _DEBUG
810
#define D3D_DEBUG_INFO
911
#endif

src/Layers/xrRenderPC_R3/stdafx.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
// stdafx.h : include file for standard system include files,
2-
// or project specific include files that are used frequently, but
3-
// are changed infrequently
4-
51
#pragma once
62

3+
#include "Common/Platform.hpp"
4+
75
#ifdef _DEBUG
86
#define D3D_DEBUG_INFO
97
#endif

src/Layers/xrRenderPC_R4/stdafx.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
// stdafx.h : include file for standard system include files,
2-
// or project specific include files that are used frequently, but
3-
// are changed infrequently
4-
51
#pragma once
62

3+
#include "Common/Platform.hpp"
4+
75
#ifdef _DEBUG
86
#define D3D_DEBUG_INFO
97
#endif

src/editors/xrManagedApi/Pch.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#pragma once
2+
#include "Common/Platform.hpp"
23
// XXX nitrocaster: move to src/Common.hpp (common engine header)
34
#define DLL_API __declspec(dllimport)

src/editors/xrWeatherEditor/pch.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
// Description : precompiled header for editor library
77
////////////////////////////////////////////////////////////////////////////
88

9-
#ifndef PCH_HPP_INCLUDED
10-
#define PCH_HPP_INCLUDED
9+
#pragma once
1110

11+
#include "Common/Platform.hpp"
1212
#include "xrCommon/inlining_macros.h"
1313

1414
#ifdef DEBUG
@@ -67,5 +67,3 @@ inline LPSTR to_string(System::String ^ string)
6767
}
6868

6969
inline System::String ^ to_string(LPCSTR string) { return (gcnew System::String(string)); }
70-
71-
#endif // #ifndef PCH_HPP_INCLUDED

src/utils/ETools/StdAfx.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// stdafx.h : include file for standard system include files,
2-
// or project specific include files that are used frequently, but
3-
// are changed infrequently
4-
//
5-
// Third generation by Oles.
6-
7-
#if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
8-
#define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_
9-
101
#pragma once
112
#define ENGINE_API
123
#define NO_XRC_STATS
134

5+
#include "Common/Platform.hpp"
146
#include "xrCore/xrCore.h"
157

168
#pragma warning(push)
@@ -30,5 +22,3 @@
3022
#pragma comment(lib, "xrCDB.lib")
3123
//{{AFX_INSERT_LOCATION}}
3224
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
33-
34-
#endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#ifndef PCH_H_INCLUDED
2-
#define PCH_H_INCLUDED
1+
#pragma once
32

3+
#include "Common/Platform.hpp"
44
#include "xrCore/xrCore.h"
55
#include "xrCore/LocatorAPI.h"
66
#include "xrCore/ppmd_compressor.h"
@@ -9,5 +9,3 @@
99
#include <conio.h>
1010
#include "Common/object_broker.h"
1111
#include "xrCore/Containers/AssociativeVector.hpp"
12-
13-
#endif // #define PCH_H_INCLUDED

0 commit comments

Comments
 (0)