define ssize_t on Windows ourselves

This commit is contained in:
idk
2020-11-18 12:26:15 -05:00
parent 49286ea282
commit c635aa4f6c
3 changed files with 9 additions and 1 deletions

View File

@ -39,3 +39,6 @@ clean:
fmt:
find . -name '*.c' -exec clang-format -i {} \;
find . -name '*.h' -exec clang-format -i {} \;
info:
@echo $(AR)

View File

@ -30,7 +30,6 @@
#ifndef SHUT_RDWR
# define SHUT_RDWR 2
#endif
#endif
#ifdef __unix__

View File

@ -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