Make hc_sleep() a function
This commit is contained in:
@@ -103,7 +103,14 @@ void naive_escape (char *s, size_t s_max, const u8 key_char, const u8 escape_cha
|
||||
strncpy (s, s_escaped, s_max - 1);
|
||||
}
|
||||
|
||||
void hc_sleep (const int sec)
|
||||
{
|
||||
#if defined (_WIN)
|
||||
#define sleep(x) Sleep ((x) * 1000)
|
||||
#endif
|
||||
|
||||
sleep (sec);
|
||||
}
|
||||
|
||||
// need to sort out from here
|
||||
|
||||
|
||||
Reference in New Issue
Block a user