diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-10-23 02:20:37 +0000 |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-10-23 02:20:37 +0000 |
commit | 43c23d4d36a558c55d12a0f7b349322fae3e4957 (patch) | |
tree | 33ad3ac2c27df2cb455003c455d74b1110adc942 /Include/pyport.h | |
parent | b519926939871e3ebd21a8d42e85d24fffdb7575 (diff) | |
download | cpython-43c23d4d36a558c55d12a0f7b349322fae3e4957.tar.gz |
Hide GCC attributes fom compilers that don't support them.
Diffstat (limited to 'Include/pyport.h')
-rw-r--r-- | Include/pyport.h | 9 |
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 */ |