In the subject line: "in curly brackets"

On 07/07/2014 11:28 AM, Emil Velikov wrote:
... as msvc preprocessor trips over itself and fails.

Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
  src/utils/wflinfo.c | 9 ++++++---
  1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c
index 94ecfea..9543918 100644
--- a/src/utils/wflinfo.c
+++ b/src/utils/wflinfo.c
@@ -535,16 +535,19 @@ print_wflinfo(const struct options *opts)
      }

      const char *vendor = (const char *) glGetString(GL_VENDOR);
-    if (glGetError() != GL_NO_ERROR || vendor == NULL)
+    if (glGetError() != GL_NO_ERROR || vendor == NULL) {
          vendor = "WFLINFO_GL_ERROR";
+    }

      const char *renderer = (const char *) glGetString(GL_RENDERER);
-    if (glGetError() != GL_NO_ERROR || renderer == NULL)
+    if (glGetError() != GL_NO_ERROR || renderer == NULL) {
          renderer = "WFLINFO_GL_ERROR";
+    }

      const char *version_str = (const char *) glGetString(GL_VERSION);
-    if (glGetError() != GL_NO_ERROR || version_str == NULL)
+    if (glGetError() != GL_NO_ERROR || version_str == NULL) {
          version_str = "WFLINFO_GL_ERROR";
+    }

      const char *platform = enum_map_to_str(platform_map, opts->platform);
      assert(platform != NULL);


_______________________________________________
waffle mailing list
waffle@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/waffle

Reply via email to