Use "static const", some GCCs don't like "const static"
This commit is contained in:
@@ -125,7 +125,7 @@
|
|||||||
#define METHOD(iface, name, ret, this, ...) \
|
#define METHOD(iface, name, ret, this, ...) \
|
||||||
static ret name(union {iface *_public; this;} \
|
static ret name(union {iface *_public; this;} \
|
||||||
__attribute__((transparent_union)), ##__VA_ARGS__); \
|
__attribute__((transparent_union)), ##__VA_ARGS__); \
|
||||||
const static typeof(name) *_##name = (const typeof(name)*)name; \
|
static const typeof(name) *_##name = (const typeof(name)*)name; \
|
||||||
static ret name(this, ##__VA_ARGS__)
|
static ret name(this, ##__VA_ARGS__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
#define METHOD2(iface1, iface2, name, ret, this, ...) \
|
#define METHOD2(iface1, iface2, name, ret, this, ...) \
|
||||||
static ret name(union {iface1 *_public1; iface2 *_public2; this;} \
|
static ret name(union {iface1 *_public1; iface2 *_public2; this;} \
|
||||||
__attribute__((transparent_union)), ##__VA_ARGS__); \
|
__attribute__((transparent_union)), ##__VA_ARGS__); \
|
||||||
const static typeof(name) *_##name = (const typeof(name)*)name; \
|
static const typeof(name) *_##name = (const typeof(name)*)name; \
|
||||||
static ret name(this, ##__VA_ARGS__)
|
static ret name(this, ##__VA_ARGS__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user