X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fatexit.c;h=5ef33e57ee21922fd0e6e01f1635544e4fcb0a89;hb=5518d301980bdc0f60b1b5d58b140004dfda490e;hp=137d985e4cbc5ed18e577fa5a91ee0d678878a8e;hpb=cef40fc05c4330217f503d7b4065ff55a280231e;p=gnulib.git diff --git a/lib/atexit.c b/lib/atexit.c index 137d985e4..5ef33e57e 100644 --- a/lib/atexit.c +++ b/lib/atexit.c @@ -1,18 +1,13 @@ /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */ /* This function is in the public domain. --Mike Stump. */ -#include "config.h" - -#ifdef HAVE_ON_EXIT +#include int -atexit(f) - void (*f)(); +atexit (void (*f) (void)) { /* If the system doesn't provide a definition for atexit, use on_exit if the system provides that. */ on_exit (f, 0); return 0; } - -#endif