aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-23 03:52:05 -0700
committerChris Robinson <[email protected]>2014-04-23 03:52:05 -0700
commit8fd224f84191b3d512f9ea0c44aa1104b23959d8 (patch)
tree2e5df0bb69426cd1f56d83f29020d5534d54a0f3 /Alc/backends/base.h
parent420599f8e37c8657fd1568aca3bcd5d1d4711234 (diff)
Avoid forward-declaring backend vtables
Diffstat (limited to 'Alc/backends/base.h')
-rw-r--r--Alc/backends/base.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h
index 31f46a1a..9db6e19d 100644
--- a/Alc/backends/base.h
+++ b/Alc/backends/base.h
@@ -45,9 +45,6 @@ struct ALCbackendVtable {
void (*const Delete)(void*);
};
-#define DECLARE_ALCBACKEND_VTABLE(T) \
-static const struct ALCbackendVtable T##_ALCbackend_vtable
-
#define DEFINE_ALCBACKEND_VTABLE(T) \
DECLARE_THUNK(T, ALCbackend, void, Destruct) \
DECLARE_THUNK1(T, ALCbackend, ALCenum, open, const ALCchar*) \
@@ -63,7 +60,7 @@ DECLARE_THUNK(T, ALCbackend, void, unlock) \
static void T##_ALCbackend_Delete(void *ptr) \
{ T##_Delete(STATIC_UPCAST(T, ALCbackend, (ALCbackend*)ptr)); } \
\
-DECLARE_ALCBACKEND_VTABLE(T) = { \
+static const struct ALCbackendVtable T##_ALCbackend_vtable = { \
T##_ALCbackend_Destruct, \
\
T##_ALCbackend_open, \