diff --git a/nob.c b/nob.c index bd4adee..2a2cbff 100644 --- a/nob.c +++ b/nob.c @@ -9,6 +9,9 @@ int main(int argc, char **argv) Cmd cmd = {0}; cmd_append(&cmd, "cc", "-Wall", "-Wextra", "-Wswitch-enum", "-ggdb", "-o", "randomart", "randomart.c", "-lm"); +#ifdef __MINGW32__ + cmd_append(&cmd, "-D__USE_MINGW_ANSI_STDIO"); +#endif if (!cmd_run_sync_and_reset(&cmd)) return 1; cmd_append(&cmd, "./randomart");