mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-21 00:31:50 +00:00
added compile-time checks for SDL version, when compiling video_sdl*.cpp
This commit is contained in:
parent
f8682679c2
commit
a646f6dc3f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user