PyFCGI/includes_python3.7m.patch
2019-06-30 08:19:03 +02:00

45 рядки
2,5 КіБ
Diff

diff -rupN python3.7m/bytesobject.h python3.7m_patched/bytesobject.h
--- python3.7m/bytesobject.h 2019-06-30 07:43:17.201934475 +0200
+++ python3.7m_patched/bytesobject.h 2019-06-29 20:16:35.360347551 +0200
@@ -52,9 +52,9 @@ PyAPI_FUNC(PyObject *) PyBytes_FromStrin
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(__printf__, 1, 0)));
PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
+ Py_GCC_ATTRIBUTE((format(__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 -rupN python3.7m/pyerrors.h python3.7m_patched/pyerrors.h
--- python3.7m/pyerrors.h 2019-06-30 07:43:17.201934475 +0200
+++ python3.7m_patched/pyerrors.h 2019-06-29 20:16:35.360347551 +0200
@@ -494,9 +494,9 @@ PyAPI_FUNC(int) PyUnicodeTranslateError_
#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(__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(__printf__, 3, 0)));
#ifdef __cplusplus
}
diff -rupN python3.7m/sysmodule.h python3.7m_patched/sysmodule.h
--- python3.7m/sysmodule.h 2019-06-30 07:43:17.205934339 +0200
+++ python3.7m_patched/sysmodule.h 2019-06-29 20:16:35.360347551 +0200
@@ -19,9 +19,9 @@ PyAPI_FUNC(void) PySys_SetArgvEx(int, wc
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(__printf__, 1, 2)));
PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
+ Py_GCC_ATTRIBUTE((format(__printf__, 1, 2)));
PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);