diff options
Diffstat (limited to 'include/set-hooks.h')
-rw-r--r-- | include/set-hooks.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/set-hooks.h b/include/set-hooks.h index 709f4c0..6dfd61c 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 |