summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-09-08 04:08:17 +0000
committerTim Janik <timj@src.gnome.org>1998-09-08 04:08:17 +0000
commite33741aed6ba496d959eb81de177717167349500 (patch)
treee77281ab4f35e74a783cb5c5ac07f50a2f096994 /gtk
parentf830dc3f36863a1bc3a9dfec4c85afdba911cecc (diff)
downloadgtk+-e33741aed6ba496d959eb81de177717167349500.tar.gz
use g_atexit() instead of ATEXIT.
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org> * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT. * gtk/gtkmain.c (gtk_init): use g_atexit() instead of ATEXIT. * gtk/gtkobject.c (gtk_object_init_type): use g_atexit() instead of ATEXIT. * ltconfig: use GLib's ltconfig which honours lcc.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkmain.c3
-rw-r--r--gtk/gtkobject.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 28ecb3410f..d40e0d97fe 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -452,8 +452,7 @@ gtk_init (int *argc,
/* Register an exit function to make sure we are able to cleanup.
*/
- if (ATEXIT (gtk_exit_func))
- g_warning ("unable to register exit function");
+ g_atexit (gtk_exit_func);
/* Set the 'initialized' flag.
*/
diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c
index 9a8014e4ee..ed41b10126 100644
--- a/gtk/gtkobject.c
+++ b/gtk/gtkobject.c
@@ -19,7 +19,6 @@
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
-#include <stdlib.h>
#include "gtkobject.h"
#include "gtksignal.h"
@@ -138,7 +137,7 @@ gtk_object_init_type (void)
#ifdef G_ENABLE_DEBUG
if (gtk_debug_flags & GTK_DEBUG_OBJECTS)
- ATEXIT (gtk_object_debug);
+ g_atexit (gtk_object_debug);
#endif /* G_ENABLE_DEBUG */
}