source: abuse/tags/pd/imlib/include/exitproc.hpp @ 161

Last change on this file since 161 was 49, checked in by Sam Hocevar, 15 years ago
  • Imported original public domain release, for future reference.
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.