[Nautilus-list] librsvg build fix (Solaris/Forte)



Hi,

In Forte C struct definitions have to have at least one element.
So this is invalid:

	struct foo { };

Placeholders can be written like this:

	struct foo;

(I think this corresponds to the standard.)

Can we remove the backets or move them inside the comment
in rsvg-paint-server.h?

Thanks,

Laca

Index: rsvg-paint-server.h
===================================================================
RCS file: /sgnome/cvsroots/GNOME/librsvg/rsvg-paint-server.h,v
retrieving revision 1.1
diff -u -r1.1 rsvg-paint-server.h
--- rsvg-paint-server.h	28 Mar 2001 18:44:42 -0000	1.1
+++ rsvg-paint-server.h	6 Dec 2001 16:44:37 -0000
@@ -7,7 +7,7 @@
 
 typedef struct _RsvgPSCtx RsvgPSCtx;
 
-struct _RsvgPSCtx {
+struct _RsvgPSCtx;
 /* todo: we need to take in some context information, including:
 
    1. The global affine transformation.
@@ -20,7 +20,6 @@
 
    Maybe signal for lazy evaluation of object bbox.
 */
-};
 
 struct _RsvgGradientStop {
   double offset;
-------------

or

Index: rsvg-paint-server.h
===================================================================
RCS file: /sgnome/cvsroots/GNOME/librsvg/rsvg-paint-server.h,v
retrieving revision 1.1
diff -u -r1.1 rsvg-paint-server.h
--- rsvg-paint-server.h	28 Mar 2001 18:44:42 -0000	1.1
+++ rsvg-paint-server.h	6 Dec 2001 16:13:34 -0000
@@ -7,8 +7,8 @@
 
 typedef struct _RsvgPSCtx RsvgPSCtx;
 
-struct _RsvgPSCtx {
-/* todo: we need to take in some context information, including:
+struct _RsvgPSCtx /*{
+   todo: we need to take in some context information, including:
 
    1. The global affine transformation.
 
@@ -19,8 +19,7 @@
    "objectBoundingBox").
 
    Maybe signal for lazy evaluation of object bbox.
-*/
-};
+} */;
 
 struct _RsvgGradientStop {
   double offset;
-------------




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