Solved: No longer able to compile darktable (Windows msys2)

Thank you kmilos! I was able to build after patching the code as per victoryforce.

(I first tried to switch to ucrt64 but had many “'quick_exit has not been declared in ::” errors).