mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Use Py_GCC_ATTRIBUTE instead of __attribute__. Compilers other than GCC
might use __attribute__ in other ways (e.g. CodeWarrior).
This commit is contained in:
parent
7f7c3d0a9c
commit
96aa0acef0
5 changed files with 12 additions and 10 deletions
|
|
@ -14,9 +14,9 @@ PyAPI_FUNC(void) PySys_SetArgv(int, char **);
|
|||
PyAPI_FUNC(void) PySys_SetPath(char *);
|
||||
|
||||
PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
|
||||
__attribute__((format(printf, 1, 2)));
|
||||
Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
||||
PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
|
||||
__attribute__((format(printf, 1, 2)));
|
||||
Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
||||
|
||||
PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
|
||||
PyAPI_DATA(int) _PySys_CheckInterval;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue