diff --git a/src/svg/svg.pro b/src/svg/svg.pro
index 983fefe8013ff1089e05c47cbe2f9188f3dbd890..e868e61aef1a500db0c10d35cde69cf337cc33f5 100644
--- a/src/svg/svg.pro
+++ b/src/svg/svg.pro
@@ -45,7 +45,7 @@ wince*: {
 }
 
 contains(QT_CONFIG, system-zlib) {
-    if(unix|win32-g++*):     LIBS_PRIVATE += -lz
+    if(unix|mingw):          LIBS_PRIVATE += -lz
     else:                    LIBS += zdll.lib
 } else {
     git_build: \