aboutsummaryrefslogtreecommitdiff
path: root/lib/compat
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-04-01 00:13:11 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-04-01 18:31:04 +0200
commita2495bd1ac9e5e54074d65616de0efa822a6309e (patch)
treee8a186b06bb4a94faafd7826b1ddc7c65112e824 /lib/compat
parentb3f2636f44eea1a8b6fbf892d2daa611cff9d4af (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/compat')
-rw-r--r--lib/compat/getline.c2
1 files changed, 1 insertions, 1 deletions
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 <stdlib.h>
#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;