Fix build with c++ compilers

This commit is contained in:
Jan Grulich 2018-10-30 12:37:14 +00:00 committed by Wim Taymans
parent 2aeb5d9d98
commit a813afd810
4 changed files with 16 additions and 10 deletions

View file

@ -317,7 +317,7 @@ const struct spa_support *pw_get_support(uint32_t *n_support)
void *pw_load_spa_interface(const char *lib, const char *factory_name, uint32_t type,
const struct spa_dict *info,
uint32_t n_support,
struct spa_support support[n_support])
struct spa_support support[])
{
struct support *sup = &global_support;
struct spa_support extra_support[MAX_SUPPORT];

View file

@ -136,7 +136,7 @@ pw_get_support_interface(uint32_t type);
void *pw_load_spa_interface(const char *lib, const char *factory_name, uint32_t type,
const struct spa_dict *info,
uint32_t n_support,
struct spa_support support[n_support]);
struct spa_support support[]);
void *pw_load_spa_dbus_interface(struct pw_loop *loop);