Hide GCC attributes fom compilers that don't support them.
diff --git a/Include/pyport.h b/Include/pyport.h
index 5f8ccf7..9c19e7a 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -446,4 +446,13 @@
 }
 #endif
 
+/*
+ * Hide GCC attributes from compilers that don't support them.
+ */
+#if !defined(__GNUC__) || __GNUC__ < 2 || \
+    (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || \
+    defined(NEXT)
+#define __attribute__(__x)
+#endif
+
 #endif /* Py_PYPORT_H */