mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
utils: check for strndupa defined
The meson check does not completely work in detecting strndupa so do an extra check before we define it.
This commit is contained in:
parent
2ae840bc12
commit
779579b349
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ pw_strip(char *str, const char *whitespace);
|
||||||
|
|
||||||
#if defined(HAVE_STRNDUPA)
|
#if defined(HAVE_STRNDUPA)
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#else
|
#elif !defined(strndupa)
|
||||||
# define strndupa(s, n) \
|
# define strndupa(s, n) \
|
||||||
({ \
|
({ \
|
||||||
const char *__old = (s); \
|
const char *__old = (s); \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue