summaryrefslogtreecommitdiff
path: root/plugins/converter/converter.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/converter/converter.c')
-rw-r--r--plugins/converter/converter.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/converter/converter.c b/plugins/converter/converter.c
index d0f4b2eb..e26e7e6b 100644
--- a/plugins/converter/converter.c
+++ b/plugins/converter/converter.c
@@ -34,16 +34,7 @@
#include <unistd.h>
#include "converter.h"
#include "../../deadbeef.h"
-
-#ifndef strdupa
-# define strdupa(s) \
- ({ \
- const char *old = (s); \
- size_t len = strlen (old) + 1; \
- char *new = (char *) alloca (len); \
- (char *) memcpy (new, old, len); \
- })
-#endif
+#include "../../strdupa.h"
#ifndef __linux__
#define O_LARGEFILE 0