(DEFINE_HOOK): Also generate prototype.
authordrepper <drepper>
Mon, 20 Nov 2000 09:10:39 +0000 (09:10 +0000)
committerdrepper <drepper>
Mon, 20 Nov 2000 09:10:39 +0000 (09:10 +0000)
include/set-hooks.h

index 709f4c0..6dfd61c 100644 (file)
@@ -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