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.
11 lines
217 B
C
11 lines
217 B
C
/* 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
|