Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1569108

Browse files
committed
Hide GCC attributes fom compilers that don't support them.
1 parent 98791af commit 1569108

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Include/pyport.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,4 +446,13 @@ typedef struct fd_set {
446446
}
447447
#endif
448448

449+
/*
450+
* Hide GCC attributes from compilers that don't support them.
451+
*/
452+
#if !defined(__GNUC__) || __GNUC__ < 2 || \
453+
(__GNUC__ == 2 && __GNUC_MINOR__ < 7) || \
454+
defined(NEXT)
455+
#define __attribute__(__x)
456+
#endif
457+
449458
#endif /* Py_PYPORT_H */

0 commit comments

Comments
 (0)