about summary refs log tree commit diff
path: root/include/set-hooks.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/set-hooks.h')
-rw-r--r--include/set-hooks.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/set-hooks.h b/include/set-hooks.h
index 709f4c0a61..6dfd61c631 100644
--- a/include/set-hooks.h
+++ b/include/set-hooks.h
@@ -52,7 +52,8 @@ do {							\
    which calls each function on the hook in turn, with ARGS.  */
 
 # define DEFINE_HOOK_RUNNER(name, runner, proto, args) \
-DEFINE_HOOK (name, proto); void runner proto { RUN_HOOK (name, args); }
+DEFINE_HOOK (name, proto); \
+extern void runner proto; void runner proto { RUN_HOOK (name, args); }
 
 #else