61 lines
2.8 KiB
Diff
61 lines
2.8 KiB
Diff
diff -urN a/Include/bytesobject.h b/Include/bytesobject.h
|
|
--- a/Include/bytesobject.h 2014-10-11 14:23:20.866222800 +0100
|
|
+++ b/Include/bytesobject.h 2014-10-11 14:23:22.622323200 +0100
|
|
@@ -52,9 +52,9 @@
|
|
PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
|
|
PyAPI_FUNC(PyObject *) PyBytes_FromObject(PyObject *);
|
|
PyAPI_FUNC(PyObject *) PyBytes_FromFormatV(const char*, va_list)
|
|
- Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
|
|
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 0)));
|
|
PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
|
|
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
|
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
|
PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *);
|
|
PyAPI_FUNC(char *) PyBytes_AsString(PyObject *);
|
|
PyAPI_FUNC(PyObject *) PyBytes_Repr(PyObject *, int);
|
|
diff -urN a/Include/pgenheaders.h b/Include/pgenheaders.h
|
|
--- a/Include/pgenheaders.h 2014-10-11 14:23:20.873223200 +0100
|
|
+++ b/Include/pgenheaders.h 2014-10-11 14:23:22.624323300 +0100
|
|
@@ -10,9 +10,9 @@
|
|
#include "Python.h"
|
|
|
|
PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
|
|
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
|
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
|
PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
|
|
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
|
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
|
|
|
#define addarc _Py_addarc
|
|
#define addbit _Py_addbit
|
|
diff -urN a/Include/pyerrors.h b/Include/pyerrors.h
|
|
--- a/Include/pyerrors.h 2014-10-11 14:23:20.879223500 +0100
|
|
+++ b/Include/pyerrors.h 2014-10-11 14:23:22.624323300 +0100
|
|
@@ -454,9 +454,9 @@
|
|
|
|
#include <stdarg.h>
|
|
PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...)
|
|
- Py_GCC_ATTRIBUTE((format(printf, 3, 4)));
|
|
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 3, 4)));
|
|
PyAPI_FUNC(int) PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va)
|
|
- Py_GCC_ATTRIBUTE((format(printf, 3, 0)));
|
|
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 3, 0)));
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
diff -urN a/Include/sysmodule.h b/Include/sysmodule.h
|
|
--- a/Include/sysmodule.h 2014-10-11 14:23:20.861222500 +0100
|
|
+++ b/Include/sysmodule.h 2014-10-11 14:23:22.625323400 +0100
|
|
@@ -19,9 +19,9 @@
|
|
PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
|
|
|
|
PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
|
|
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
|
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
|
PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
|
|
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
|
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
|
PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
|
|
PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
|
|
|