gcc knows __gnu_printf__ since version 4.4.0, not only for MinGW but for all targets. As we would need to check the gcc version anyway to avoid "unrecognized format function type" errors with older MinGW versions, we can simply use it for recent gcc versions and not depend on MinGW at all.