From fc72c5375813a6bbc0845aca984147a944a7e62a Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 3 Feb 2006 15:19:58 +0000 Subject: Patch #1417462 by Dan Everton - Improved SDL simulator git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8546 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/kernel.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'uisimulator/sdl/kernel.c') 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 @@ * \/ \/ \/ \/ \/ * $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 +#include +#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; } - -- cgit v1.2.3