From a23b1790b87a75e38fd00f9d537669f44718023d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 17 Nov 2025 03:59:20 -0500 Subject: Add windows binary release target. --- src/unalf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/unalf.c') diff --git a/src/unalf.c b/src/unalf.c index 39685e7..6bfd94d 100644 --- a/src/unalf.c +++ b/src/unalf.c @@ -29,7 +29,12 @@ static void set_self(char *argv0) { static void create_outdir(void) { int r; - r = mkdir(opts.outdir, 0777); + r = +#if defined(__MINGW32__) || defined(__MINGW64__) + mkdir(opts.outdir); +#else + mkdir(opts.outdir, 0777); +#endif if(r < 0 && errno != EEXIST) { fprintf(stderr, "%s: ", self); perror(opts.outdir); -- cgit v1.2.3