Skip to content

Commit 6c397fb

Browse files
authored
Add option to opt-out of vips7compat.h inclusion (#4210)
Via the `VIPS_DISABLE_COMPAT` definition.
1 parent 0166b51 commit 6c397fb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libvips/include/vips/vips.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,14 @@ extern "C" {
135135
#include <vips/colour.h>
136136
#include <vips/draw.h>
137137
#include <vips/create.h>
138-
#if VIPS_ENABLE_DEPRECATED
138+
139+
/* VIPS_DISABLE_COMPAT:
140+
*
141+
* Disable automatically inclusion of `vips7compat.h`.
142+
*
143+
* This has no effect when building with `-Ddeprecated=false`.
144+
*/
145+
#if VIPS_ENABLE_DEPRECATED && !defined(VIPS_DISABLE_COMPAT)
139146
#include <vips/vips7compat.h>
140147
#endif
141148

0 commit comments

Comments
 (0)