picotcp msvc fix: __inline, usleep

This commit is contained in:
Flyinghead 2018-09-17 14:31:27 +02:00
parent bc7fed4919
commit ae829405b5
2 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,9 @@
#include <string.h>
#include <stdio.h>
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include <sys/time.h>
/*
@ -130,7 +132,7 @@ extern void *pico_thread_create(void *(*routine)(void *), void *arg);
static inline void PICO_IDLE(void)
{
usleep(5000);
// Not used anyway usleep(5000);
}
#endif /* PICO_SUPPORT_POSIX */

View File

@ -11,4 +11,6 @@
#define PICO_SUPPORT_DNS_CLIENT
#define PICO_SUPPORT_CRC
#define PICO_SUPPORT_PPP
#define inline __inline
#endif