mirror of
https://gitea.tendokyu.moe/Hay1tsme/segatools.git
synced 2025-01-19 14:28:42 +01:00
Shiz
ad24fe10bb
build: enable "secure" CRT headers on MinGW
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/.
Segatools
Quick start on a Linux build host:
# Install Meson and a recent build of MinGW-w64, then:
$ meson --cross cross-build-32.txt _build32
$ ninja -C _build32
$ meson --cross cross-build-64.txt
$ ninja -C _build64
Building on MSYS2 is also possible; consult Meson documentation for details.
Additional documentation will be forthcoming.
Languages
C
96.2%
Meson
2.3%
Makefile
1.1%
Shell
0.3%