mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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
This commit is contained in:
parent
0d0828b18e
commit
26507c1bf2
1 changed files with 6 additions and 1 deletions
|
|
@ -23,6 +23,11 @@
|
|||
#include "thread-win32.h"
|
||||
#include "thread.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;
|
||||
|
||||
void sleep(int ticks)
|
||||
{
|
||||
Sleep (1000 / HZ * ticks);
|
||||
|
|
@ -78,4 +83,4 @@ int set_irq_level (int level)
|
|||
{
|
||||
static int _lv = 0;
|
||||
return (_lv = level);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue