[Cogl] cogl-gpu-info.c: Avoid C99ism
Fan Chun-wei
fanc999 at yahoo.com.tw
Wed Jul 24 02:54:59 PDT 2013
Hi,
Unfortunately the named initializers that were used in a recent commit
of cogl-gpu-info.c is not universally supported (specifically Visual
Studio before the 2013 release), so avoid using them here.
With blessings, thank you!
-------------- next part --------------
From 5ba48114ae6ee806559fdeb62e3e47d799b2578b Mon Sep 17 00:00:00 2001
From: Chun-wei Fan <fanchunwei at src.gnome.org>
Date: Wed, 24 Jul 2013 17:39:21 +0800
Subject: [PATCH 1/2] cogl-gpu-info.c: Avoid using named initializers
Unfortunately named initializers is a feature that is not supported by
all compilers (such as pre-2013 Visual Studio) so avoid using that.
---
cogl/cogl-gpu-info.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/cogl/cogl-gpu-info.c b/cogl/cogl-gpu-info.c
index 2aae9fc..e3e3d66 100644
--- a/cogl/cogl-gpu-info.c
+++ b/cogl/cogl-gpu-info.c
@@ -459,9 +459,10 @@ UNIT_TEST (check_mesa_driver_package_parser,
0, /* no requirements */
0 /* no failure cases */)
{
- const CoglGpuInfoStrings test_strings[] = {
- { .version_string = "3.1 Mesa 9.2-devel15436ad" },
- { .version_string = "3.1 (Core Profile) Mesa 9.2.0-devel (git-15436ad)" }
+ /* renderer_string, version_string, vendor_string;*/
+ const CoglGpuInfoStrings test_strings[2] = {
+ { NULL, "3.1 Mesa 9.2-devel15436ad", NULL },
+ { NULL, "3.1 (Core Profile) Mesa 9.2.0-devel (git-15436ad)", NULL }
};
int i;
int version;
--
1.8.3.msysgit.0
More information about the Cogl
mailing list