diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-02-03 15:19:58 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-02-03 15:19:58 +0000 |
| commit | fc72c5375813a6bbc0845aca984147a944a7e62a (patch) | |
| tree | 347a6a9297f9f4d3131c8268f450d6ba227d0246 /uisimulator/sdl/kernel.c | |
| parent | 347992e9d93ed0f91cde7e2d580cfdc8d5eb95f4 (diff) | |
| download | rockbox-fc72c5375813a6bbc0845aca984147a944a7e62a.zip rockbox-fc72c5375813a6bbc0845aca984147a944a7e62a.tar.gz rockbox-fc72c5375813a6bbc0845aca984147a944a7e62a.tar.bz2 rockbox-fc72c5375813a6bbc0845aca984147a944a7e62a.tar.xz | |
Patch #1417462 by Dan Everton - Improved SDL simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8546 a1c6a512-1295-4272-9138-f99709370657
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 947d82a..2621ece 100644 --- a/uisimulator/sdl/kernel.c +++ b/uisimulator/sdl/kernel.c @@ -7,7 +7,7 @@ * \/ \/ \/ \/ \/ * $Id$ * - * Copyright (C) 2005 by Jens Arnold + * Copyright (C) 2002 by Felix Arends * * All files in this archive are subject to the GNU General Public License. * See the file COPYING in the source tree root for full license agreement. @@ -17,11 +17,18 @@ * ****************************************************************************/ -#include <stddef.h> +#include <stdlib.h> +#include "uisdl.h" #include "kernel.h" +#include "thread-sdl.h" #include "thread.h" #include "debug.h" +/* (Daniel 2002-10-31) Mingw32 requires this errno variable to be present. + I'm not quite sure why and I don't know if this breaks the MSVC compile. + If it does, we should put this within #ifdef __MINGW32__ */ +int errno; + static void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); int set_irq_level (int level) @@ -148,6 +155,7 @@ int tick_remove_task(void (*f)(void)) return -1; } +/* TODO: Implement mutexes for win32 */ void mutex_init(struct mutex *m) { (void)m; @@ -162,4 +170,3 @@ void mutex_unlock(struct mutex *m) { (void)m; } - |