[cairo] [PATCH 2/5] perf: Fixed C89 compatibility issues.

Zoxc zoxc32 at gmail.com
Thu Jun 24 11:31:52 PDT 2010


---
 perf/cairo-perf-trace.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c
index 5afe9e7..8df51ba 100644
--- a/perf/cairo-perf-trace.c
+++ b/perf/cairo-perf-trace.c
@@ -284,9 +284,13 @@ execute (cairo_perf_t	 *perf,
     int low_std_dev_count;
     char *trace_cpy, *name, *dot;
     const cairo_script_interpreter_hooks_t hooks = {
-	.closure = target,
-	.surface_create = _similar_surface_create,
-	.context_create = _context_create
+        target, /* closure */
+        _similar_surface_create, /* surface_create */
+        0, /* surface_destroy */
+        _context_create, /* context_create */
+        0, /* context_destroy */
+        0, /* show_page */
+        0, /* copy_page */
     };
 
     trace_cpy = xstrdup (trace);
-- 
1.7.0.2.msysgit.0



More information about the cairo mailing list