Skip to content

Commit 13ff3f7

Browse files
committed
Fix GType on arm64
1 parent 24e7485 commit 13ff3f7

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/vips/cdefs.lua

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local ffi = require "ffi"
44

55
-- GType is an int the size of a pointer ... I don't think we can just use
66
-- size_t, sadly
7-
if ffi.arch == "x64" then
7+
if ffi.arch == "x64" or ffi.arch == "arm64" then
88
ffi.cdef [[
99
typedef uint64_t GType;
1010
]]
@@ -92,11 +92,23 @@ ffi.cdef [[
9292
// opaque
9393
} VipsObjectClass;
9494

95+
typedef enum {
96+
G_PARAM_READABLE = 1,
97+
G_PARAM_WRITABLE = 2,
98+
G_PARAM_CONSTRUCT = 4,
99+
G_PARAM_CONSTRUCT_ONLY = 8,
100+
G_PARAM_LAX_VALIDATION = 16,
101+
G_PARAM_STATIC_NAME = 32,
102+
G_PARAM_PRIVATE = G_PARAM_STATIC_NAME,
103+
G_PARAM_STATIC_NICK = 64,
104+
G_PARAM_STATIC_BLURB = 128
105+
} GParamFlags;
106+
95107
typedef struct _GParamSpec {
96108
void *g_type_instance;
97109

98110
const char *name;
99-
unsigned int flags;
111+
GParamFlags flags;
100112
GType value_type;
101113
GType owner_type;
102114

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy