Skip to content

Commit a697fe7

Browse files
authored
fixup! Fix build with orc (#4198) (#4203)
1 parent a674138 commit a697fe7

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

libvips/include/vips/vips7compat.h

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@
3636

3737
#include <vips/mask.h>
3838

39+
/* The old deprecated VipsVector/VipsExecutor API required orc.
40+
* Avoid a possible ABI/API break with the adoption of highway.
41+
*/
42+
#ifdef HAVE_ORC
43+
#include <orc/orc.h>
44+
#else
45+
typedef struct _OrcProgram {
46+
/* Opaque */
47+
} OrcProgram;
48+
49+
typedef struct _OrcExecutor {
50+
char data[808];
51+
} OrcExecutor;
52+
#endif
53+
3954
#ifdef __cplusplus
4055
extern "C" {
4156
#endif /*__cplusplus*/
@@ -1658,18 +1673,6 @@ size_t vips__get_sizeof_vipsobject(void);
16581673

16591674
/* This is deprecated to make room for highway.
16601675
*/
1661-
#ifndef OrcProgram
1662-
typedef struct _OrcProgram {
1663-
/* Opaque */
1664-
} OrcProgram;
1665-
#endif
1666-
1667-
#ifndef OrcExecutor
1668-
typedef struct _OrcExecutor {
1669-
char data[808];
1670-
} OrcExecutor;
1671-
#endif
1672-
16731676
#define VIPS_VECTOR_SOURCE_MAX (10)
16741677

16751678
typedef struct {

0 commit comments

Comments
 (0)