Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
1d518f0d
Commit
1d518f0d
authored
Jan 27, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiling under Visual Studio
parent
e253e1d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
SDL_timer.c
src/timer/SDL_timer.c
+6
-0
SDL_systimer.c
src/timer/windows/SDL_systimer.c
+1
-0
testatomic.c
test/testatomic.c
+0
-1
No files found.
src/timer/SDL_timer.c
View file @
1d518f0d
...
@@ -224,7 +224,13 @@ SDL_TimerInit(void)
...
@@ -224,7 +224,13 @@ SDL_TimerInit(void)
}
}
data
->
active
=
SDL_TRUE
;
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
);
data
->
thread
=
SDL_CreateThread
(
SDL_TimerThread
,
data
);
#endif
if
(
!
data
->
thread
)
{
if
(
!
data
->
thread
)
{
SDL_TimerQuit
();
SDL_TimerQuit
();
return
-
1
;
return
-
1
;
...
...
src/timer/windows/SDL_systimer.c
View file @
1d518f0d
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#ifdef SDL_TIMER_WINDOWS
#ifdef SDL_TIMER_WINDOWS
#include "../../core/windows/SDL_windows.h"
#include "../../core/windows/SDL_windows.h"
#include <mmsystem.h>
#include "SDL_timer.h"
#include "SDL_timer.h"
...
...
test/testatomic.c
View file @
1d518f0d
...
@@ -526,7 +526,6 @@ static int FIFO_Reader(void* _data)
...
@@ -526,7 +526,6 @@ static int FIFO_Reader(void* _data)
ReaderData
*
data
=
(
ReaderData
*
)
_data
;
ReaderData
*
data
=
(
ReaderData
*
)
_data
;
SDL_EventQueue
*
queue
=
data
->
queue
;
SDL_EventQueue
*
queue
=
data
->
queue
;
SDL_Event
event
;
SDL_Event
event
;
int
index
;
if
(
data
->
lock_free
)
{
if
(
data
->
lock_free
)
{
for
(
;
;
)
{
for
(
;
;
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment