Skip to content

Commit 6c2ab81

Browse files
committed
Port src/Common on Linux
1 parent aa1bf00 commit 6c2ab81

File tree

9 files changed

+777
-93
lines changed

9 files changed

+777
-93
lines changed

src/Common/Common.hpp

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

9-
#if __has_include(<SDL.h>)
10-
#include <SDL.h>
9+
#if defined(WINDOWS)
10+
#if __has_include("SDL.h")
11+
#include "SDL.h"
1112
#endif
1213

13-
#if __has_include(<SDL_syswm.h>)
14-
#include <SDL_syswm.h>
14+
#if __has_include("SDL_syswm.h")
15+
#include "SDL_syswm.h"
16+
#endif
1517
#endif

src/Common/FSMacros.hpp

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

3+
#if defined(LINUX)
4+
#define _DELIMITER '/' //for looking
5+
#define DELIMITER "/" // for insert
6+
#elif defined(WINDOWS)
7+
#define _DELIMITER '\\' //for looking
8+
#define DELIMITER "\\" // for insert
9+
#endif
10+
311
// game path definition
412
#define _game_data_ "$game_data$"
513
#define _game_textures_ "$game_textures$"

0 commit comments

Comments
 (0)