patch 8.0.1681: the format attribute fails with MinGW

Problem:    The format attribute fails with MinGW. (John Marriott)
Solution:   Don't use the format attribute with MinGW.
diff --git a/src/channel.c b/src/channel.c
index 0f2e52b..88c53b7 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -179,8 +179,8 @@
 
     static void
 ch_error(channel_T *ch, const char *fmt, ...)
-#ifdef __GNUC__
-__attribute__((format(printf, 2, 3)))
+#ifdef USE_PRINTF_FORMAT_ATTRIBUTE
+    __attribute__((format(printf, 2, 3)))
 #endif
     ;