]> git.alsa-project.org Git - alsa-utils.git/commitdiff
axfer: Declare global variables as 'extern' in header
authorSamuel Holland <samuel@sholland.org>
Sun, 21 Apr 2019 00:13:20 +0000 (19:13 -0500)
committerJaroslav Kysela <perex@perex.cz>
Tue, 7 May 2019 06:30:25 +0000 (08:30 +0200)
This avoids multiple definitions of the same global variable (one in
each file that includes this header), and fixes a linking error when
compiled with -fno-common.

Fixes: 96110793b3e5 ("axfer: add support for a container of raw data")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
axfer/container.h

index 2c0c4cf61f1ae59a57e7fbe9cf08729216fd243b..cb64816dd8ebc4e7584cac8540af773528db54a5 100644 (file)
@@ -120,7 +120,7 @@ extern const struct container_builder container_builder_au;
 extern const struct container_parser container_parser_voc;
 extern const struct container_builder container_builder_voc;
 
-const struct container_parser container_parser_raw;
-const struct container_builder container_builder_raw;
+extern const struct container_parser container_parser_raw;
+extern const struct container_builder container_builder_raw;
 
 #endif