Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiling under Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 27, 2011
1 parent 0a78a09 commit 2273c0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/timer/SDL_timer.c
Expand Up @@ -224,7 +224,13 @@ SDL_TimerInit(void)
}

data->active = SDL_TRUE;
/* !!! FIXME: this is nasty. */
#if (defined(__WIN32__) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
#undef SDL_CreateThread
data->thread = SDL_CreateThread(SDL_TimerThread, data, NULL, NULL);
#else
data->thread = SDL_CreateThread(SDL_TimerThread, data);
#endif
if (!data->thread) {
SDL_TimerQuit();
return -1;
Expand Down
1 change: 1 addition & 0 deletions src/timer/windows/SDL_systimer.c
Expand Up @@ -24,6 +24,7 @@
#ifdef SDL_TIMER_WINDOWS

#include "../../core/windows/SDL_windows.h"
#include <mmsystem.h>

#include "SDL_timer.h"

Expand Down
1 change: 0 additions & 1 deletion test/testatomic.c
Expand Up @@ -526,7 +526,6 @@ static int FIFO_Reader(void* _data)
ReaderData *data = (ReaderData *)_data;
SDL_EventQueue *queue = data->queue;
SDL_Event event;
int index;

if (data->lock_free) {
for ( ; ; ) {
Expand Down

0 comments on commit 2273c0b

Please sign in to comment.