provide proper ATEXIT behavior on NeXTStep by !atexit

-Yosh
This commit is contained in:
Manish Singh
1998-09-06 19:35:39 +00:00
parent 38c3cf2961
commit bbaadfc586
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
Sun Sep 6 12:35:13 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
Wed Jul 1 20:14:03 PDT 1998 Manish Singh <yosh@gimp.org>
* ltconfig: fix for properly detecting shared lib support on

View File

@@ -176,7 +176,11 @@
#ifndef ATEXIT
# ifdef HAVE_ATEXIT
# define ATEXIT(proc) (atexit (proc))
# ifdef NeXT /* @#%@! NeXTStep */
# define ATEXIT(proc) (!atexit (proc))
# else
# define ATEXIT(proc) (atexit (proc))
# endif /* NeXT */
# elif defined (HAVE_ON_EXIT)
# define ATEXIT(proc) (on_exit ((void (*)(int, void *))(proc), NULL))
# endif