Skip to content

Commit c4d4dd1

Browse files
committed
Moved SDL includes to Common.hpp
xrEngine/Device_Initialize.cpp: resource.h is not used anymore
1 parent 50511f1 commit c4d4dd1

21 files changed

+9
-29
lines changed

src/Common/Common.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@
55
#include "Common/CommonImportExport.inl"
66
#include "Common/FSMacros.hpp"
77
#include "Include/xrAPI/xrAPI.h"
8+
9+
#if __has_include(<SDL.h>)
10+
#include <SDL.h>
11+
#endif
12+
13+
#if __has_include(<SDL_syswm.h>)
14+
#include <SDL_syswm.h>
15+
#endif

src/Layers/xrRender/HW.h

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

33
#include "HWCaps.h"
44
#include "xrCore/ModuleLookup.hpp"
5-
#include "SDL.h"
6-
#include "SDL_syswm.h"
75

86
#if !defined(_MAYA_EXPORT) && !defined(USE_OGL)
97
#include "stats_manager.h"

src/editors/xrEditor/entry_point.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#include "xrEngine/device.h"
66
#include "xrEngine/XR_IOConsole.h"
77
#include "xrEngine/xr_ioc_cmd.h"
8-
#include "SDL.h"
9-
108

119
using namespace XRay;
1210
using namespace XRay::Editor;

src/xrCore/os_clipboard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "stdafx.h"
1212
#pragma hdrstop
13-
#include <SDL.h>
13+
1414
#include "os_clipboard.h"
1515
#include "xrCore/_std_extensions.h"
1616

src/xrCore/xrCore.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#include "stdafx.h"
44
#pragma hdrstop
55

6-
#include <SDL.h>
7-
86
#if defined(WINDOWS)
97
#include <mmsystem.h>
108
#include <objbase.h>

src/xrCore/xrDebug.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#include "stdafx.h"
22
#pragma hdrstop
33

4-
#include "SDL.h"
5-
#include "SDL_syswm.h"
6-
74
#include "xrDebug.h"
85
#include "os_clipboard.h"
96
#include "log.h"

src/xrEngine/Device_Initialize.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#include "stdafx.h"
2-
#include "xr_3da/resource.h"
3-
#include <SDL.h>
42

53
#include "Include/editor/ide.hpp"
64
#include "engine_impl.hpp"

src/xrEngine/Device_create.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#include "xrCore/xr_token.h"
55
#include "xrCDB/xrXRC.h"
66
#include "XR_IOConsole.h"
7-
#include <SDL.h>
8-
#include <SDL_syswm.h>
97

108
extern u32 Vid_SelectedMonitor;
119
extern u32 Vid_SelectedRefreshRate;

src/xrEngine/Device_destroy.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#include "IGame_Persistent.h"
55
#include "XR_IOConsole.h"
66
#include "xr_input.h"
7-
#include <SDL.h>
8-
#include <SDL_syswm.h>
97

108
extern void FreeMonitorsToken();
119
extern void FreeVidModesToken();

src/xrEngine/IInputReceiver.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include "xr_input.h"
55
#include "IInputReceiver.h"
6-
#include "SDL_syswm.h"
76

87
void IInputReceiver::IR_Capture(void)
98
{

0 commit comments

Comments
 (0)