Skip to content

Commit 5d20bf7

Browse files
committed
fix Vips-8.0.gir generation
The empty struct for OrcProgram seems to confuse introspection, I see a lot of message like: ``` $ ninja [4/551] Generating glib marshaller header libvips/iofuncs/vipsmarshal_h INFO: Reading ../libvips/iofuncs/vipsmarshal.list... [7/551] Generating glib marshaller source libvips/iofuncs/vipsmarshal_c INFO: Reading ../libvips/iofuncs/vipsmarshal.list... [550/551] Generating libvips/Vips-8.0.... command (wrapped by meson to set env) /home/john/GIT/libvips/libvips/include/vips/vips7compat.h:47: syntax error, unexpected '}' in '} OrcProgram;' at '}' ``` Using a typdef to an anon struct seems to fix this.
1 parent a697fe7 commit 5d20bf7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libvips/include/vips/vips7compat.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@
4242
#ifdef HAVE_ORC
4343
#include <orc/orc.h>
4444
#else
45-
typedef struct _OrcProgram {
46-
/* Opaque */
47-
} OrcProgram;
45+
typedef struct _OrcProgram OrcProgram;
4846

4947
typedef struct _OrcExecutor {
5048
char data[808];

0 commit comments

Comments
 (0)