added compile-time checks for SDL version, when compiling video_sdl*.cpp

This commit is contained in:
David Ludwig 2017-09-04 12:28:25 -04:00
parent f8682679c2
commit a646f6dc3f
2 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,8 @@
#include "sysdeps.h"
#include <SDL.h>
#if (SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0))
#include <SDL_mutex.h>
#include <SDL_thread.h>
#include <errno.h>
@ -2262,3 +2264,5 @@ void video_set_dirty_area(int x, int y, int w, int h)
// XXX handle dirty bounding boxes for non-VOSF modes
}
#endif
#endif // ends: SDL version check

View File

@ -42,6 +42,8 @@
#include "sysdeps.h"
#include <SDL.h>
#if SDL_VERSION_ATLEAST(2,0,0)
#include <SDL_mutex.h>
#include <SDL_thread.h>
#include <errno.h>
@ -2599,3 +2601,5 @@ void video_set_dirty_area(int x, int y, int w, int h)
// XXX handle dirty bounding boxes for non-VOSF modes
}
#endif
#endif // ends: SDL version check