1 --- Python-2.6.7/Include/pyport.h Sun May 9 15:15:40 2010 2 +++ Python-2.6.7/Include/pyport.h.fixed Tue Aug 13 18:25:28 2013 3 @@ -712,7 +707,8 @@ 4 /* 5 * Add PyArg_ParseTuple format where available. 6 */ 7 -#ifdef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 8 +#if HAVE_ATTRIBUTE_FORMAT_PARSETUPLE && (!defined(__GNUC__) || \ 9 + (__GNUC__ >= 4 && __GNUC_MINOR__ > 7)) 10 #define Py_FORMAT_PARSETUPLE(func,p1,p2) __attribute__((format(func,p1,p2))) 11 #else 12 #define Py_FORMAT_PARSETUPLE(func,p1,p2)