tsoding / musializer

Music Visualizer
MIT License
921 stars 97 forks source link

Bugfix: Add Windows MinGW support #46

Closed gstaaij closed 1 year ago

gstaaij commented 1 year ago

As long as you bootstrap nob.c with the MinGW version of gcc and the bin folder of MinGW is in the PATH, this should work. It just checks if nob.c is compiled using windows with a #ifdef, and uses windres instead of x86_64-w64-mingw32-windres when that's the case. I tested it using the UCRT version of MinGW 13.1.0, and it probably works with the newest version (13.2.0) too.

rexim commented 1 year ago

Alright, let's give it a try. Thanks for the PR!