diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-10-23 02:20:37 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-10-23 02:20:37 (GMT) |
commit | 156910851e31d4e7f8d1441a3b05a44b31349adf (patch) | |
tree | fedcfb8fb842612fa4c1cf88b689bc733dfeab78 /Include | |
parent | 98791affc8d04ea7ad0303d67b6666b27bbd4bb7 (diff) | |
download | cpython-156910851e31d4e7f8d1441a3b05a44b31349adf.zip cpython-156910851e31d4e7f8d1441a3b05a44b31349adf.tar.gz cpython-156910851e31d4e7f8d1441a3b05a44b31349adf.tar.bz2 |
Hide GCC attributes fom compilers that don't support them.
Diffstat (limited to 'Include')
-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 5f8ccf7..9c19e7a 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 */ |