From: bob Date: Thu, 19 Nov 2015 08:53:21 +0000 (+0200) Subject: mingw compilation error (sleep) fixed X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=deb2089e24236b24f4b2b53203210b03fcf878d1;p=fw%2Fstlink mingw compilation error (sleep) fixed --- diff --git a/mingw/mingw.h b/mingw/mingw.h index 1fcf93d..cb33301 100644 --- a/mingw/mingw.h +++ b/mingw/mingw.h @@ -65,5 +65,6 @@ char *win32_strsep(char **stringp, const char *delim); ssize_t win32_read_socket(SOCKET fd, void *buf, int n); ssize_t win32_write_socket(SOCKET fd, void *buf, int n); +static inline void sleep(unsigned ms) { Sleep(ms); } #endif