_PyUnicode_AsKind() is *not* part of the stable ABI
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index c41d787..bba1c23 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -795,7 +795,9 @@
     Py_ssize_t *size            /* number of characters of the result */
     );
 
+#ifndef Py_LIMITED_API
 PyAPI_FUNC(void*) _PyUnicode_AsKind(PyObject *s, unsigned int kind);
+#endif
 
 #endif