diff options
Diffstat (limited to 'uisimulator/sdl/kernel.c')
-rw-r--r-- | uisimulator/sdl/kernel.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/uisimulator/sdl/kernel.c b/uisimulator/sdl/kernel.c index 947d82a550..2621ecebdd 100644 --- a/uisimulator/sdl/kernel.c +++ b/uisimulator/sdl/kernel.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2005 by Jens Arnold | 10 | * Copyright (C) 2002 by Felix Arends |
11 | * | 11 | * |
12 | * All files in this archive are subject to the GNU General Public License. | 12 | * All files in this archive are subject to the GNU General Public License. |
13 | * See the file COPYING in the source tree root for full license agreement. | 13 | * See the file COPYING in the source tree root for full license agreement. |
@@ -17,11 +17,18 @@ | |||
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | 19 | ||
20 | #include <stddef.h> | 20 | #include <stdlib.h> |
21 | #include "uisdl.h" | ||
21 | #include "kernel.h" | 22 | #include "kernel.h" |
23 | #include "thread-sdl.h" | ||
22 | #include "thread.h" | 24 | #include "thread.h" |
23 | #include "debug.h" | 25 | #include "debug.h" |
24 | 26 | ||
27 | /* (Daniel 2002-10-31) Mingw32 requires this errno variable to be present. | ||
28 | I'm not quite sure why and I don't know if this breaks the MSVC compile. | ||
29 | If it does, we should put this within #ifdef __MINGW32__ */ | ||
30 | int errno; | ||
31 | |||
25 | static void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); | 32 | static void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); |
26 | 33 | ||
27 | int set_irq_level (int level) | 34 | int set_irq_level (int level) |
@@ -148,6 +155,7 @@ int tick_remove_task(void (*f)(void)) | |||
148 | return -1; | 155 | return -1; |
149 | } | 156 | } |
150 | 157 | ||
158 | /* TODO: Implement mutexes for win32 */ | ||
151 | void mutex_init(struct mutex *m) | 159 | void mutex_init(struct mutex *m) |
152 | { | 160 | { |
153 | (void)m; | 161 | (void)m; |
@@ -162,4 +170,3 @@ void mutex_unlock(struct mutex *m) | |||
162 | { | 170 | { |
163 | (void)m; | 171 | (void)m; |
164 | } | 172 | } |
165 | |||