Hide GCC attributes fom compilers that don't support them.

This commit is contained in:
Neil Schemenauer 2001-10-23 02:20:37 +00:00
parent 98791affc8
commit 156910851e

View file

@ -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 */