Skip to content

Commit

Permalink
Add option to opt-out of vips7compat.h inclusion
Browse files Browse the repository at this point in the history
Via the `VIPS_DISABLE_COMPAT` definition.
  • Loading branch information
kleisauke committed Oct 18, 2024
1 parent 0a9736b commit ecb5c49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libvips/include/vips/vips.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,14 @@ extern "C" {
#include <vips/colour.h>
#include <vips/draw.h>
#include <vips/create.h>
#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 <vips/vips7compat.h>
#endif

Expand Down

0 comments on commit ecb5c49

Please sign in to comment.