mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Fix building with SDL 1.2.
git-svn-id: https://svn.eduke32.com/eduke32@3120 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
548f939df5
commit
2b583ebf4c
2 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,10 @@ struct sdlappicon {
|
|||
uint8_t *mask;
|
||||
};
|
||||
|
||||
#if (SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION < 3) // SDL 1.2
|
||||
int32_t SDL_WaitEventTimeout(SDL_Event *event, int32_t timeout);
|
||||
#endif
|
||||
|
||||
static inline void idle_waitevent_timeout(uint32_t timeout)
|
||||
{
|
||||
SDL_WaitEventTimeout(NULL, timeout);
|
||||
|
|
|
@ -2245,7 +2245,7 @@ int32_t handleevents(void)
|
|||
|
||||
#if (SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION < 3) // SDL 1.2
|
||||
// from SDL HG, modified
|
||||
static int32_t SDL_WaitEventTimeout(SDL_Event *event, int32_t timeout)
|
||||
int32_t SDL_WaitEventTimeout(SDL_Event *event, int32_t timeout)
|
||||
{
|
||||
uint32_t expiration = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue