mirror of
https://github.com/bluekitchen/btstack.git
synced 2024-12-28 15:20:39 +00:00
chipset/bcm: provide sleep for Visual Studio
This commit is contained in:
parent
c9207d2082
commit
889634f398
@ -43,7 +43,17 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// map sleep() to Sleep()
|
||||
#include "Windows.h"
|
||||
unsigned int sleep(unsigned int seconds){
|
||||
_Sleep(seconds * 1000);
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "hci_dump.h"
|
||||
#include "btstack_chipset_bcm.h"
|
||||
|
Loading…
Reference in New Issue
Block a user