fixes for configuring (cvs) glib w/ --ansi



The following patch is needed to make cvs glib compile under gcc 2.95.3,
configured w/ --ansi.  The changes are pretty basic: C++ style comments
to C style comments, and the inclusion of glib.h in one file, so the
compiler doesn't barf on the "inline" keyword.

(http://incandescent.mp3revolution.net/glib/ansi.diff)
-- 
"... being a Linux user is sort of like living in a house inhabited
by a large family of carpenters and architects. Every morning when
you wake up, the house is a little different. Maybe there is a new
turret, or some walls have moved. Or perhaps someone has temporarily
removed the floor under your bed." - Unix for Dummies, 2nd Edition
        -- found in the .sig of Rob Riggs, rriggs tesser com
diff -ur glib/gobject/gsignal.c glib.dilinger/gobject/gsignal.c
--- glib/gobject/gsignal.c	Tue Apr  3 21:04:46 2001
+++ glib.dilinger/gobject/gsignal.c	Tue Apr  3 20:45:39 2001
@@ -1066,7 +1066,7 @@
     g_return_val_if_fail (accu_data == NULL, 0);
 
   name = g_strdup (signal_name);
-  g_strdelimit (name, G_STR_DELIMITERS ":^", '_');  // FIXME do character checks like for types
+  g_strdelimit (name, G_STR_DELIMITERS ":^", '_');  /* FIXME do character checks like for types */
   
   G_LOCK (g_signal_mutex);
   
diff -ur glib/gobject/gtype.c glib.dilinger/gobject/gtype.c
--- glib/gobject/gtype.c	Tue Apr  3 21:04:46 2001
+++ glib.dilinger/gobject/gtype.c	Tue Apr  3 20:46:26 2001
@@ -1354,7 +1354,7 @@
     }
   
   instance->g_class = NULL;
-  memset (instance, 0xaa, node->data->instance.instance_size);	// FIXME: debugging hack
+  memset (instance, 0xaa, node->data->instance.instance_size);	/* FIXME: debugging hack */
   if (node->data->instance.n_preallocs)
     {
       G_WRITE_LOCK (&type_rw_lock);
diff -ur glib/gpattern.c glib.dilinger/gpattern.c
--- glib/gpattern.c	Tue Apr  3 09:15:38 2001
+++ glib.dilinger/gpattern.c	Tue Apr  3 21:04:27 2001
@@ -21,6 +21,7 @@
 #include "gmacros.h"
 #include "gmessages.h"
 #include "gmem.h"
+#include "glib.h"
 #include <string.h>
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]