diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-25 08:10:23 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-25 08:10:54 +0200 |
commit | 2254b31a65c784888215169efc9a067f7dd3a430 (patch) | |
tree | 884b8fd0b5466148e393787124b0a07195304dcc | |
parent | cf93928fe9cb4ce1600f2f472191ce88e94ee0d7 (diff) |
Compiling with SDL versions earlier than 2.0.14
-rw-r--r-- | src/app.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -54,7 +54,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
54 | #include <SDL_render.h> | 54 | #include <SDL_render.h> |
55 | #include <SDL_timer.h> | 55 | #include <SDL_timer.h> |
56 | #include <SDL_video.h> | 56 | #include <SDL_video.h> |
57 | #include <SDL_misc.h> | ||
58 | #include <SDL_version.h> | 57 | #include <SDL_version.h> |
59 | 58 | ||
60 | #include <stdio.h> | 59 | #include <stdio.h> |
@@ -67,6 +66,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
67 | #if defined (iPlatformMsys) | 66 | #if defined (iPlatformMsys) |
68 | # include "win32.h" | 67 | # include "win32.h" |
69 | #endif | 68 | #endif |
69 | #if SDL_VERSION_ATLEAST(2, 0, 14) | ||
70 | # include <SDL_misc.h> | ||
71 | #endif | ||
70 | 72 | ||
71 | iDeclareType(App) | 73 | iDeclareType(App) |
72 | 74 | ||