mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
alisp: add the missing include
Commitd4e08c5e86changed to use internal versioned functions. However, the header is not included. It generates the errors: In file included from external/alsa-lib/src/alisp/alisp.c:3038: external/alsa-lib/src/alisp/alisp_snd.c:583:64: error: implicit declaration of function '__snd_ctl_elem_info_get_dimension' is invalid in C99 [-Werror,-Wimplicit-function-declaration] p2 = add_cons2(instance, p2, idx > 0, new_integer(instance, INTERNAL(snd_ctl_elem_info_get_dimension)(&info, idx))); ^ external/alsa-lib/include/alsa-symbols.h:30:24: note: expanded from macro 'INTERNAL' #define INTERNAL(Name) INTERNAL_CONCAT2_2(__, Name) ^ external/alsa-lib/include/alsa-symbols.h:29:39: note: expanded from macro 'INTERNAL_CONCAT2_2' #define INTERNAL_CONCAT2_2(Pre, Post) Pre##Post ^ <scratch space>:396:1: note: expanded from here __snd_ctl_elem_info_get_dimension ^ external/alsa-lib/src/alisp/alisp_snd.c:583:64: note: did you mean '__snd_ctl_elem_info_get_dimensions'? external/alsa-lib/include/alsa-symbols.h:30:24: note: expanded from macro 'INTERNAL' #define INTERNAL(Name) INTERNAL_CONCAT2_2(__, Name) ^ external/alsa-lib/include/alsa-symbols.h:29:39: note: expanded from macro 'INTERNAL_CONCAT2_2' #define INTERNAL_CONCAT2_2(Pre, Post) Pre##Post ^ <scratch space>:396:1: note: expanded from here __snd_ctl_elem_info_get_dimension ^ external/alsa-lib/src/alisp/alisp_snd.c:578:8: note: '__snd_ctl_elem_info_get_dimensions' declared here err = INTERNAL(snd_ctl_elem_info_get_dimensions)(&info); ^ external/alsa-lib/include/alsa-symbols.h:30:24: note: expanded from macro 'INTERNAL' #define INTERNAL(Name) INTERNAL_CONCAT2_2(__, Name) ^ external/alsa-lib/include/alsa-symbols.h:29:39: note: expanded from macro 'INTERNAL_CONCAT2_2' #define INTERNAL_CONCAT2_2(Pre, Post) Pre##Post ^ <scratch space>:395:1: note: expanded from here __snd_ctl_elem_info_get_dimensions ^ 2 errors generated. Fixes:d4e08c5e86("control: Proper reference of internal versioned functions") Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
e6f8998258
commit
639d404df6
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "../control/control_local.h"
|
||||
|
||||
struct acall_table {
|
||||
const char *name;
|
||||
struct alisp_object * (*func) (struct alisp_instance *instance, struct acall_table * item, struct alisp_object * args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue