mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Hide GCC attributes fom compilers that don't support them.
This commit is contained in:
parent
98791affc8
commit
156910851e
1 changed files with 9 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue