Skip to content

Commit 1a3c5fe

Browse files
committed
Keep ISO C90 support
1 parent d6c4442 commit 1a3c5fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/c/_cffi_backend.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6100,6 +6100,9 @@ static void _my_PyErr_WriteUnraisable(PyObject *t, PyObject *v, PyObject *tb,
61006100
Luckily it's also Python 3.8 that adds new functionality that
61016101
people might want: the new sys.unraisablehook().
61026102
*/
6103+
#if PY_VERSION_HEX < 0x030D0000
6104+
PyObject *s;
6105+
#endif
61036106
int first_char;
61046107
assert(objdescr != NULL && objdescr[0] != 0); /* non-empty */
61056108
first_char = objdescr[0];
@@ -6120,7 +6123,6 @@ static void _my_PyErr_WriteUnraisable(PyObject *t, PyObject *v, PyObject *tb,
61206123
first_char, objdescr + 1, extra_error_line);
61216124
}
61226125
#else
6123-
PyObject *s;
61246126
if (obj != NULL)
61256127
s = PyUnicode_FromFormat("%c%s%R%s",
61266128
first_char, objdescr + 1, obj, extra_error_line);

0 commit comments

Comments
 (0)