Index: Include/pyport.h =================================================================== --- Include/pyport.h (revision 67366) +++ Include/pyport.h (working copy) @@ -137,6 +137,18 @@ # error "Python doesn't support sizeof(pid_t)> sizeof(long)" #endif +/* + * Hide GCC attributes from compilers that don't support them. + */ +#if ((!defined(__GNUC__) || __GNUC__ < 2 || \ + (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ) && \ + !defined(RISCOS) ) || \ + !defined(PY_FORMAT_SIZE_T) +#define Py_GCC_ATTRIBUTE(x) +#else +#define Py_GCC_ATTRIBUTE(x) __attribute__(x) +#endif + /* PY_FORMAT_SIZE_T is a platform-specific modifier for use in a printf * format to convert an argument with the width of a size_t or Py_ssize_t. * C99 introduced "z" for this purpose, but not all platforms support that; @@ -690,17 +702,6 @@ #endif /* - * Hide GCC attributes from compilers that don't support them. - */ -#if (!defined(__GNUC__) || __GNUC__ < 2 || \ - (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ) && \ - !defined(RISCOS) -#define Py_GCC_ATTRIBUTE(x) -#else -#define Py_GCC_ATTRIBUTE(x) __attribute__(x) -#endif - -/* * Add PyArg_ParseTuple format where available. */ #ifdef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE

AltStyle によって変換されたページ (->オリジナル) /