mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04: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
|
|
@ -232,10 +232,14 @@ size_t page_align(size_t size);
|
|||
size_t page_size(void);
|
||||
size_t page_ptr(size_t object_offset, size_t object_size, size_t *offset, size_t *mmap_offset);
|
||||
|
||||
int safe_strtoll_base(const char *str, long long *val, int base);
|
||||
#define safe_strtoll_base _snd_safe_strtoll_base
|
||||
int _snd_safe_strtoll_base(const char *str, long long *val, int base);
|
||||
static inline int safe_strtoll(const char *str, long long *val) { return safe_strtoll_base(str, val, 0); }
|
||||
int safe_strtol_base(const char *str, long *val, int base);
|
||||
#define safe_strtol_base _snd_safe_strtol_base
|
||||
int _snd_safe_strtol_base(const char *str, long *val, int base);
|
||||
static inline int safe_strtol(const char *str, long *val) { return safe_strtol_base(str, val, 0); }
|
||||
#define safe_strtod _snd_safe_strtod
|
||||
int _snd_safe_strtod(const char *str, double *val);
|
||||
|
||||
int snd_send_fd(int sock, void *data, size_t len, int fd);
|
||||
int snd_receive_fd(int sock, void *data, size_t len, int *fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue