qoibench.c, line 92, the macro ERROR is defined but windows.h includes wingdi.h, and the latter defines the same macro just rename the macro, like QOI_ERR for example i can provide a PR if you want