source: abuse/trunk/src/imlib/include/exitproc.hpp @ 2

Last change on this file since 2 was 2, checked in by Sam Hocevar, 14 years ago
  • imported original 0.7.0 tarball
File size: 232 bytes
Line 
1#ifndef __EXITPROC_HPP_
2#define __EXITPROC_HPP_
3
4#include <stdlib.h>
5
6#ifdef HAVE_ATEXIT
7#define exit_proc(x,y) atexit(y)
8#elif defined (HAVE_ON_EXIT)
9#define exit_proc(x,y) on_exit(x,NULL)
10#else
11#error no atexit?!?
12#endif
13
14
15#endif
Note: See TracBrowser for help on using the repository browser.