mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 22:17:17 +03:00
update cspot
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <winsock2.h>
|
||||
|
||||
#define SHUT_RDWR SD_BOTH
|
||||
#define ssize_t SSIZE_T
|
||||
|
||||
#define strcasecmp stricmp
|
||||
#define strncasecmp _strnicmp
|
||||
#define bzero(p,n) memset(p,0,n)
|
||||
#define usleep(x) Sleep((x)/1000)
|
||||
|
||||
inline void close(int sock) { closesocket(sock); }
|
||||
inline size_t read(int sock, char* buf, size_t n) { return recv(sock, buf, n, 0); }
|
||||
inline int write(int sock, const char* buf, size_t n) { return send(sock, buf, n, 0); }
|
||||
Reference in New Issue
Block a user