summaryrefslogtreecommitdiff
path: root/plugins/gtkui/widgets.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtkui/widgets.c')
-rw-r--r--plugins/gtkui/widgets.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/gtkui/widgets.c b/plugins/gtkui/widgets.c
index 7318d894..e15fa0a4 100644
--- a/plugins/gtkui/widgets.c
+++ b/plugins/gtkui/widgets.c
@@ -37,19 +37,11 @@
#endif
#include "namedicons.h"
#include "hotkeys.h" // for building action treeview
+#include "../../strdupa.h"
#define min(x,y) ((x)<(y)?(x):(y))
#define max(x,y) ((x)>(y)?(x):(y))
-#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
// utility code for parsing keyvalues
#define get_keyvalue(s,key,val) {\