diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2006-10-19 10:58:46 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2006-10-19 10:58:46 +0000 |
| commit | aac1316222c7e4a073af1634f2eef0a872a3dafb (patch) | |
| tree | f200e0b491ba8b0bccc490a116b48763633e0c48 /Include/pyport.h | |
| parent | b03c35bac3a17aad776a1ef8e81706cf56412143 (diff) | |
| download | cpython-git-aac1316222c7e4a073af1634f2eef0a872a3dafb.tar.gz | |
Add check for the PyArg_ParseTuple format, and declare
it if it is supported.
Diffstat (limited to 'Include/pyport.h')
| -rw-r--r-- | Include/pyport.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 6fe3f0b528..36d517cd99 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -749,6 +749,15 @@ typedef struct fd_set { #define Py_GCC_ATTRIBUTE(x) __attribute__(x) #endif +/* + * Add PyArg_ParseTuple format where available. + */ +#ifdef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE +#define Py_FORMAT_PARSETUPLE(func,p1,p2) __attribute__((format(func,p1,p2))) +#else +#define Py_FORMAT_PARSETUPLE(func,p1,p2) +#endif + /* Eliminate end-of-loop code not reached warnings from SunPro C * when using do{...}while(0) macros */ |
