Add Windows MSVC compilation target and CI

Restructure compat layer: #include_next headers moved to posix/ for
MinGW, new standalone headers in msvc/ for MSVC (unistd.h, utime.h,
getopt.h). Add getopt() implementation, chmod/unlink/chdir compat
functions, MSVC CRT initializer for UTF-8 console, _pgmptr fix.
This commit is contained in:
Eremey Valetov
2026-03-11 08:16:11 -04:00
parent 145c948804
commit 40af7e877e
13 changed files with 196 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
/* Minimal POSIX getopt for MSVC */
#ifndef _COMPAT_GETOPT_H
#define _COMPAT_GETOPT_H
extern char *optarg;
extern int optind, opterr, optopt;
int getopt(int argc, char *const argv[], const char *optstring);
#endif