mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed compile on Windows.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3573 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a43660bf9d
commit
750c1a9403
@ -273,12 +273,12 @@ int bdnet_inet_aton(const char *name, struct in_addr *addr)
|
||||
|
||||
|
||||
|
||||
void sleep(int sec)
|
||||
int sleep(unsigned int sec)
|
||||
{
|
||||
Sleep(sec * 1000);
|
||||
}
|
||||
|
||||
void usleep(int usec)
|
||||
int usleep(unsigned int usec)
|
||||
{
|
||||
Sleep(usec / 1000);
|
||||
}
|
||||
|
@ -157,8 +157,8 @@ int bdnet_w2u_errno(int error);
|
||||
* ms uses millisecs.
|
||||
* void Sleep(int ms);
|
||||
*/
|
||||
void sleep(int sec);
|
||||
void usleep(int usec);
|
||||
int sleep(unsigned int sec);
|
||||
int usleep(unsigned int usec);
|
||||
|
||||
#endif // END of WINDOWS defines.
|
||||
/********************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
||||
|
Loading…
Reference in New Issue
Block a user