added:
* file: small wrap over winapi for windows and stdio for posix * fs: small wrapper over stat * slice: slice macro type modified: * str and strview are now slices
This commit is contained in:
parent
bb5cce33f0
commit
c4d1ffe539
15 changed files with 451 additions and 88 deletions
2
socket.h
2
socket.h
|
|
@ -19,8 +19,6 @@ struct sockaddr;
|
|||
#include <winsock2.h>
|
||||
typedef SOCKET socket_t;
|
||||
typedef int socket_len_t;
|
||||
#define INVALID_SOCKET (socket_t)(~0)
|
||||
#define SOCKET_ERROR (-1)
|
||||
#elif SOCK_POSIX
|
||||
#include <sys/socket.h>
|
||||
typedef int socket_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue