Fix compile error of GCC 4
[fio.git] / compiler / compiler.h
index 44fa87b90cf8c5959ec76c8544aa90480b89f318..3fd0822f3b77bca92a99472ebbc9fbd1fb241df0 100644 (file)
@@ -67,6 +67,7 @@
 #endif
 
 #ifndef __has_attribute
+#define __has_attribute(x) __GCC4_has_attribute_##x
 #define __GCC4_has_attribute___fallthrough__   0
 #endif