summaryrefslogtreecommitdiff
path: root/uisimulator/win32
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-31 08:05:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-31 08:05:47 +0000
commit26507c1bf246ec753331fc88a9385946d3893796 (patch)
treee7c708d8d2cd7775e815b4e9ed94e8976171e6e9 /uisimulator/win32
parent0d0828b18e6c2aacaeb82f4f467c728813a76742 (diff)
downloadrockbox-26507c1bf246ec753331fc88a9385946d3893796.tar.gz
rockbox-26507c1bf246ec753331fc88a9385946d3893796.zip
add 'errno' here, since it makes the mingw32 build work fine again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2787 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32')
-rw-r--r--uisimulator/win32/kernel.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/uisimulator/win32/kernel.c b/uisimulator/win32/kernel.c
index 045b03d330..150b8e42cc 100644
--- a/uisimulator/win32/kernel.c
+++ b/uisimulator/win32/kernel.c
@@ -23,6 +23,11 @@
23#include "thread-win32.h" 23#include "thread-win32.h"
24#include "thread.h" 24#include "thread.h"
25 25
26/* (Daniel 2002-10-31) Mingw32 requires this errno variable to be present.
27 I'm not quite sure why and I don't know if this breaks the MSVC compile.
28 If it does, we should put this within #ifdef __MINGW32__ */
29int errno;
30
26void sleep(int ticks) 31void sleep(int ticks)
27{ 32{
28 Sleep (1000 / HZ * ticks); 33 Sleep (1000 / HZ * ticks);
@@ -78,4 +83,4 @@ int set_irq_level (int level)
78{ 83{
79 static int _lv = 0; 84 static int _lv = 0;
80 return (_lv = level); 85 return (_lv = level);
81} \ No newline at end of file 86}