diff --git a/libvips/include/vips/vips.h b/libvips/include/vips/vips.h index 45960c66e..9e74ef557 100644 --- a/libvips/include/vips/vips.h +++ b/libvips/include/vips/vips.h @@ -135,7 +135,14 @@ extern "C" { #include #include #include -#if VIPS_ENABLE_DEPRECATED + +/* VIPS_DISABLE_COMPAT: + * + * Disable automatically inclusion of `vips7compat.h`. + * + * This has no effect when building with `-Ddeprecated=false`. + */ +#if VIPS_ENABLE_DEPRECATED && !defined(VIPS_DISABLE_COMPAT) #include #endif