--- a/features/hidapi.prf
+++ b/features/hidapi.prf
@@ -43,7 +43,7 @@
   }
 }
 
-*-g++* {
+*-g++*:!*-clang* {
   GCC_VERSION = $$system("g++ -dumpversion | cut -d. -f1")
   lessThan(GCC_VERSION, 5) {
     DISABLE_HIDAPI="yes"
