]> git.lyx.org Git - lyx.git/blob - src/support/atexit.c
* lyxfunctional.h: delete compare_memfun and helper classes
[lyx.git] / src / support / atexit.c
1 /**
2  * \file atexit.c
3  * Wrapper to implement ANSI C's atexit using SunOS's on_exit.
4  *
5  * This function is in the public domain.  --Mike Stump.
6  */
7
8 #ifndef NEED_on_exit
9 int atexit(void (*f)())
10 {
11   /* If the system doesn't provide a definition for atexit, use on_exit
12      if the system provides that.  */
13   on_exit (f, 0);
14   return 0;
15 }
16 #endif