From a2495bd1ac9e5e54074d65616de0efa822a6309e Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 1 Apr 2020 00:13:11 +0200 Subject: Add preliminary VisualStudio support - Mostly workarounds/clutches in compat.h - Change getline return type to int - Replace C99 style flexible array with alloca - Add all the MSVC solution/project crap Signed-off-by: David Oberhollenzer --- lib/compat/getline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compat/getline.c') diff --git a/lib/compat/getline.c b/lib/compat/getline.c index e63c50e..d7e456b 100644 --- a/lib/compat/getline.c +++ b/lib/compat/getline.c @@ -11,7 +11,7 @@ #include #ifndef HAVE_GETLINE -ssize_t getline(char **line, size_t *n, FILE *fp) +int getline(char **line, size_t *n, FILE *fp) { size_t new_cap, len = 0, cap = 0; char *buffer = NULL, *new; -- cgit v1.2.3