diff options
author | 2013-08-30 20:19:26 +0200 | |
---|---|---|
committer | 2013-08-30 20:19:26 +0200 | |
commit | d7f15ac7306a80fee78631d6ff2d736d125f6414 (patch) | |
tree | e1c84f28b483f489c9286087eb00763fb1259a54 /plugins/gtkui/hotkeys.c | |
parent | 3ad91661619b579076f32ce6c1727c3eb176adde (diff) |
moved all copies of strdupa macro to strdupa.h
Diffstat (limited to 'plugins/gtkui/hotkeys.c')
-rw-r--r-- | plugins/gtkui/hotkeys.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/gtkui/hotkeys.c b/plugins/gtkui/hotkeys.c index 4b7ac034..a34fb629 100644 --- a/plugins/gtkui/hotkeys.c +++ b/plugins/gtkui/hotkeys.c @@ -61,16 +61,7 @@ typedef struct #include <X11/Xlib.h> // only for the KeySym type #endif #include "hotkeys.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" void on_hotkeys_actions_cursor_changed (GtkTreeView *treeview, |