Skip to content

Commit d52cbc4

Browse files
committed
Revert "COmmon, xrCore: refactor SDL2 includes"
This reverts commit 56931f3.
1 parent 13617b5 commit d52cbc4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Common/Common.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@
66
#include "Common/FSMacros.hpp"
77
#include "Include/xrAPI/xrAPI.h"
88

9+
#if defined(WINDOWS)
10+
#if __has_include("SDL.h")
911
#include "SDL.h"
12+
#endif
13+
14+
#if __has_include("SDL_syswm.h")
1015
#include "SDL_syswm.h"
16+
#endif
17+
#endif

src/xrCore/xrMemory.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "stdafx.h"
22

3+
#include "SDL.h"
4+
35
#if defined(WINDOWS)
46
#include <Psapi.h>
57
#elif defined(LINUX)

0 commit comments

Comments
 (0)