Some distributions of MinGW, recent builds included, require
`MINGW_HAS_SECURE_API` to be defined in order to expose `_s` variants of
functions, as defined by Annex K of the C standard, in the headers.
Omitting this definition leads to a bunch of compiler warnings clobbering
the build output, as well as possibly incorrect inference of argument and
return types by the compiler.
It needs to be set to `1` as opposed to simply defined as per
https://sourceforge.net/p/mingw-w64/bugs/714/.
Some distributions of MinGW, recent builds included, require
`MINGW_HAS_SECURE_API` to be defined in order to expose `_s` variants of
functions, as defined by Annex K of the C standard, in the headers.
Omitting this definition leads to a bunch of compiler warnings clobbering
the build output, as well as possibly incorrect inference of argument and
return types by the compiler.
It needs to be set to `1` as opposed to simply defined as per
https://sourceforge.net/p/mingw-w64/bugs/714/.
Optional for now, since not all games or configurations may need it.
It may be better eventually to refactor hooklib/path.c to allow for
static path remapping, to minimize boilerplate code around the functions.
Optional for now, since not all games or configurations may need it.
It may be better eventually to refactor hooklib/path.c to allow for
static path remapping, to minimize boilerplate code around the functions.
The default value being commented out is no doubt a great source
of confusion whenever somebody attempts to edit it without
realizing that it is a comment.
The default value being commented out is no doubt a great source
of confusion whenever somebody attempts to edit it without
realizing that it is a comment.
It doesn't seem to be needed, and this makes the build work for
environments where MinGW-w64 cross-toolchains get installed someplace
else (e.g. macOS with Homebrew to /usr/local).
It doesn't seem to be needed, and this makes the build work for
environments where MinGW-w64 cross-toolchains get installed someplace
else (e.g. macOS with Homebrew to /usr/local).