babl r399 - in trunk: . babl



Author: martinn
Date: Wed Mar 25 19:02:31 2009
New Revision: 399
URL: http://svn.gnome.org/viewvc/babl?rev=399&view=rev

Log:
Some vendor compilers can't compile non-constant elements of compound struct initializers

Patch from Gary V. Vaughan

Modified:
   trunk/ChangeLog
   trunk/babl/babl-fish.c

Modified: trunk/babl/babl-fish.c
==============================================================================
--- trunk/babl/babl-fish.c	(original)
+++ trunk/babl/babl-fish.c	Wed Mar 25 19:02:31 2009
@@ -193,8 +193,14 @@
                             (Babl *) NULL,
                             (Babl *) NULL,
                             0,
-                            source_format,
-                            destination_format};
+                            (Babl *) NULL,
+                            (Babl *) NULL};
+
+    /* some vendor compilers can't compile non-constant elements of
+     * compound struct initializers
+     */
+    ffish.source = source_format;
+    ffish.destination = destination_format;
 
     id_htable = (babl_fish_db ())->id_hash;
     hashval = babl_hash_by_int (id_htable, babl_fish_get_id (source_format, destination_format));



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