1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-10-24 01:09:01 +03:00

Fix nanohttp.c build when --without-output

The xmlRegisterHTTPPostCallbacks and xmlRegisterDefaultOutputCallbacks
are inside "#ifdef LIBXML_OUTPUT_ENABLED" in the xmlIO.h, so we should
have the same in the nanohttp.c

Fix https://gitlab.gnome.org/GNOME/libxml2/-/issues/1057
This commit is contained in:
Daniel Garcia Moreno
2026-02-24 14:47:57 +01:00
committed by Daniel Garcia Moreno
parent fac4411aa6
commit 4b35628e97

View File

@@ -294,6 +294,7 @@ xmlIOHTTPClose (void *context ATTRIBUTE_UNUSED) {
return 0;
}
#ifdef LIBXML_OUTPUT_ENABLED
/**
* @deprecated HTTP support was removed in 2.15.
*/
@@ -301,5 +302,6 @@ void
xmlRegisterHTTPPostCallbacks(void) {
xmlRegisterDefaultOutputCallbacks();
}
#endif
#endif /* LIBXML_HTTP_STUBS_ENABLED */