diff --git a/src_c/rwobject.c b/src_c/rwobject.c index 937c71f637..172702ebb3 100644 --- a/src_c/rwobject.c +++ b/src_c/rwobject.c @@ -688,7 +688,7 @@ _rwops_from_pystr(PyObject *obj, char **extptr) /* If out of memory, decref oencoded to be safe, and try * to close out `rw` as well. */ Py_DECREF(oencoded); -#if SDL_VERSION_ATLEAST(3, 0, 0) +#if SDL_VERSION_ATLEAST(3, 0, 0) if (!SDL_RWclose(rw)) { #else if (SDL_RWclose(rw) < 0) {