From 156910851e31d4e7f8d1441a3b05a44b31349adf Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Tue, 23 Oct 2001 02:20:37 +0000 Subject: [PATCH] Hide GCC attributes fom compilers that don't support them. --- Include/pyport.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 */ -- 2.50.0