summarylogtreecommitdiffstats
path: root/arch.patch
blob: 721252fbd0e0f7caaf44c4391fc51b7e2b6d2886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5cfbeef1a..f0cf9a33b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -102,7 +102,7 @@ if(NOT CMAKE_BUILD_TYPE)
 endif()
 
 
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14 -lSDL2main -lSDL2")
 
 set(UNFUCK_GCC_FLAGS "")
 set(UNFUCK_GXX_FLAGS "")
diff --git a/source/in_sdl.cpp b/source/in_sdl.cpp
index 3c0787a65..9a3e1744b 100644
--- a/source/in_sdl.cpp
+++ b/source/in_sdl.cpp
@@ -22,7 +22,7 @@
 //**  GNU General Public License for more details.
 //**
 //**************************************************************************
-#include <SDL.h>
+#include <SDL2/SDL.h>
 #include "gamedefs.h"
 #include "drawer.h"
 #include "ui/ui.h"
diff --git a/source/render/hwgl/gl_sdl.cpp b/source/render/hwgl/gl_sdl.cpp
index c1067f64d..03d4d8884 100644
--- a/source/render/hwgl/gl_sdl.cpp
+++ b/source/render/hwgl/gl_sdl.cpp
@@ -22,7 +22,7 @@
 //**  GNU General Public License for more details.
 //**
 //**************************************************************************
-#include <SDL.h>
+#include <SDL2/SDL.h>
 #include "gl_local.h"
 
 
diff --git a/source/sys_sdl.cpp b/source/sys_sdl.cpp
index f0be647bc..d63078b62 100644
--- a/source/sys_sdl.cpp
+++ b/source/sys_sdl.cpp
@@ -30,7 +30,7 @@
 #include <unistd.h>
 #include <signal.h>
 #include <dirent.h>
-#include <SDL.h>
+#include <SDL2/SDL.h>
 #if !defined(_WIN32) && !defined(__SWITCH__)
 # include <execinfo.h>
 #elif defined(__SWITCH__)
diff --git a/vccrun/modules/sdlgl/mod_sdlgl.cpp b/vccrun/modules/sdlgl/mod_sdlgl.cpp
index c805a6192..aa1992f7b 100644
--- a/vccrun/modules/sdlgl/mod_sdlgl.cpp
+++ b/vccrun/modules/sdlgl/mod_sdlgl.cpp
@@ -32,7 +32,7 @@
 
 #include <sys/time.h>
 
-#include <SDL.h>
+#include <SDL2/SDL.h>
 #include <GL/gl.h>
 #include <GL/glext.h>
 static SDL_Window *hw_window = nullptr;
diff --git a/vccrun/modules/sdlgl/mod_sdlgl.h b/vccrun/modules/sdlgl/mod_sdlgl.h
index 82589ae04..d9aca8540 100644
--- a/vccrun/modules/sdlgl/mod_sdlgl.h
+++ b/vccrun/modules/sdlgl/mod_sdlgl.h
@@ -30,7 +30,7 @@
 #include "../../vcc_run.h"
 
 #if defined (VCCRUN_HAS_SDL) && defined(VCCRUN_HAS_OPENGL)
-#include <SDL.h>
+#include <SDL2/SDL.h>
 #ifdef USE_GLAD
 #include "glad.h"
 #else