mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
conf: fix the export of safe_strto* functions from libasound
Only one library should define the safe_strto function. Export it
correctly and add _snd_ prefix to avoid possible clashes with the other
application code.
Fixes: 47252054 ("src/topology/parser.c: drop duplicate safe_strtol_base")
Fixes: https://github.com/alsa-project/alsa-lib/pull/208
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
47252054b4
commit
c687c48210
3 changed files with 15 additions and 5 deletions
|
|
@ -134,3 +134,9 @@ ALSA_1.1.6 {
|
|||
|
||||
@SYMBOL_PREFIX@snd_dlopen;
|
||||
} ALSA_0.9.7;
|
||||
|
||||
ALSA_1.2.6 {
|
||||
global:
|
||||
|
||||
@SYMBOL_PREFIX@_snd_safe_strto*;
|
||||
} ALSA_1.1.6;
|
||||
|
|
|
|||
|
|
@ -663,7 +663,7 @@ static int input_stdio_open(snd_input_t **inputp, const char *file,
|
|||
return err;
|
||||
}
|
||||
|
||||
int safe_strtoll_base(const char *str, long long *val, int base)
|
||||
int _snd_safe_strtoll_base(const char *str, long long *val, int base)
|
||||
{
|
||||
char *end;
|
||||
long v;
|
||||
|
|
@ -679,7 +679,7 @@ int safe_strtoll_base(const char *str, long long *val, int base)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int safe_strtol_base(const char *str, long *val, int base)
|
||||
int _snd_safe_strtol_base(const char *str, long *val, int base)
|
||||
{
|
||||
char *end;
|
||||
long v;
|
||||
|
|
@ -695,7 +695,7 @@ int safe_strtol_base(const char *str, long *val, int base)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int safe_strtod(const char *str, double *val)
|
||||
int _snd_safe_strtod(const char *str, double *val)
|
||||
{
|
||||
char *end;
|
||||
double v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue