Make ssize_t equal to intptr_t for non-POSIX environments

This commit is contained in:
ado 2024-02-24 19:09:41 +01:00
parent c6f6ba9821
commit 383de57f9a

View File

@ -34,7 +34,7 @@ inline ssize_t get_line_file(char** lineptr, size_t* n, FILE* stream) {
}
#else
using ssize_t = int64_t;
using ssize_t = intptr_t;
ssize_t get_line_file(char** lineptr, size_t* n, FILE* fp) {
if (lineptr == nullptr || n == nullptr || fp == nullptr) {