summaryrefslogtreecommitdiff
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-10-23 02:20:37 +0000
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-10-23 02:20:37 +0000
commit43c23d4d36a558c55d12a0f7b349322fae3e4957 (patch)
tree33ad3ac2c27df2cb455003c455d74b1110adc942 /Include/pyport.h
parentb519926939871e3ebd21a8d42e85d24fffdb7575 (diff)
downloadcpython-43c23d4d36a558c55d12a0f7b349322fae3e4957.tar.gz
Hide GCC attributes fom compilers that don't support them.
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 5f8ccf7c13..9c19e7a926 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -446,4 +446,13 @@ typedef struct fd_set {
}
#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 */