Commit 15691085 authored by Neil Schemenauer's avatar Neil Schemenauer

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

parent 98791aff
......@@ -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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment