Skip to content

Commit

Permalink
fixup! Fix build with orc (libvips#4198)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Oct 12, 2024
1 parent 59ac0f0 commit d28530e
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions libvips/include/vips/vips7compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@

#include <vips/mask.h>

/* The old deprecated VipsVector/VipsExecutor API required orc.
* Avoid a possible ABI/API break with the adoption of highway.
*/
#ifdef HAVE_ORC
#include <orc/orc.h>
#else
typedef struct _OrcProgram {
/* Opaque */
} OrcProgram;

typedef struct _OrcExecutor {
char data[808];
} OrcExecutor;
#endif

#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/
Expand Down Expand Up @@ -1658,18 +1673,6 @@ size_t vips__get_sizeof_vipsobject(void);

/* This is deprecated to make room for highway.
*/
#ifndef OrcProgram
typedef struct _OrcProgram {
/* Opaque */
} OrcProgram;
#endif

#ifndef OrcExecutor
typedef struct _OrcExecutor {
char data[808];
} OrcExecutor;
#endif

#define VIPS_VECTOR_SOURCE_MAX (10)

typedef struct {
Expand Down

0 comments on commit d28530e

Please sign in to comment.