tests: fix redefined warnings when building spa-props test

This commit is contained in:
Julian Bouzas 2020-04-21 12:11:20 -04:00
parent cfbcb5eca3
commit e08af1baa3
2 changed files with 9 additions and 7 deletions

View file

@ -51,7 +51,11 @@ test(
test(
'test-spa-props',
executable('test-spa-props', 'spa-props.c',
executable('test-spa-props',
[
'spa-props.c',
'../../lib/wp/spa-props.c'
],
dependencies: common_deps, c_args: common_args),
env: common_env,
)

View file

@ -6,13 +6,11 @@
* SPDX-License-Identifier: MIT
*/
/* private functions, they should be hidden in the shared library */
#include "wp/spa-props.c"
#include "wp/spa-type.c"
#include "wp/iterator.c"
#include "wp/spa-pod.c"
#include <spa/pod/iter.h>
#include <spa/pod/vararg.h>
#include <spa/param/props.h>
#include "../../lib/wp/private.h"
#include <wp/wp.h>