17 lines
389 B
Diff
17 lines
389 B
Diff
musl strdupa() fails to compile in c++ due to a missing cast
|
|
use deadbeef's fallback version instead
|
|
|
|
--- a/include/deadbeef/strdupa.h
|
|
+++ b/include/deadbeef/strdupa.h
|
|
@@ -26,6 +26,10 @@
|
|
|
|
#include <string.h>
|
|
|
|
+#if defined(__linux__) && !defined(__GLIBC__)
|
|
+# undef strdupa
|
|
+#endif
|
|
+
|
|
#ifndef strdupa
|
|
# define strdupa(s) \
|
|
({
|