From ac434acebb3c01977ad6a7d2ad7507c9909802e0 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 8 Oct 2026 20:06:01 +0000 Subject: More work to support building on windows. Right now, the build fails completely, because src/bin/main.c uses some unix specific functionalities. Next up is implementing them in the os/* files, but that won't be today. FossilOrigin-Name: 91ed737388525736696714b585eb50b423789aab5c1a245fe9269d52be10c8c2 --- src/bin/aplwc_repl.h | 8 -------- src/bin/main.c | 4 ---- src/include/os.h | 2 +- src/os/windows.c | 2 +- 4 files changed, 2 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/bin/aplwc_repl.h b/src/bin/aplwc_repl.h index 6d01de1..6f93223 100644 --- a/src/bin/aplwc_repl.h +++ b/src/bin/aplwc_repl.h @@ -22,14 +22,6 @@ #include #include - -#include -#include -#include -#include -#include -#include -#include #include #include diff --git a/src/bin/main.c b/src/bin/main.c index 04bb13a..3614053 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -17,10 +17,6 @@ * along with aplwc. If not, see . */ -#define _POSIX_C_SOURCE 200809L -#include -#include -#include #include "aplwc_repl.h" static unsigned long failsim_start; diff --git a/src/include/os.h b/src/include/os.h index a56b79d..440cf3b 100644 --- a/src/include/os.h +++ b/src/include/os.h @@ -49,6 +49,6 @@ enum OS { #include #endif -int getline(char **, size_t *, void *); +int getline(char **, size_t *, FILE *); #endif /* OS_H */ diff --git a/src/os/windows.c b/src/os/windows.c index 88d8b27..6835cc2 100644 --- a/src/os/windows.c +++ b/src/os/windows.c @@ -19,7 +19,7 @@ #include -int getline(char **, size_t *, void *) +int getline(char **lineptr, size_t *n, FILE *stream) { return -1; } -- cgit v1.2.3