define ssize_t on Windows ourselves
This commit is contained in:
3
Makefile
3
Makefile
@ -39,3 +39,6 @@ clean:
|
||||
fmt:
|
||||
find . -name '*.c' -exec clang-format -i {} \;
|
||||
find . -name '*.h' -exec clang-format -i {} \;
|
||||
|
||||
info:
|
||||
@echo $(AR)
|
||||
|
@ -30,7 +30,6 @@
|
||||
#ifndef SHUT_RDWR
|
||||
# define SHUT_RDWR 2
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __unix__
|
||||
|
@ -14,6 +14,12 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <stddef.h>
|
||||
#include
|
||||
typedef SSIZE_T ssize_t;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user