[waffle] [PATCH] wflinfo: Fix MSVC compilation error.
Jose Fonseca
jfonseca at vmware.com
Fri Jan 30 03:07:41 PST 2015
Workaround what seems to be a bug in MSVC parser for C99.
http://lists.freedesktop.org/archives/waffle/2015-January/000975.html
---
src/utils/wflinfo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c
index 5e173b7..30d04cd 100644
--- a/src/utils/wflinfo.c
+++ b/src/utils/wflinfo.c
@@ -1073,8 +1073,9 @@ main(int argc, char **argv)
error_get_gl_symbol("glGetIntegerv");
glGetString = waffle_dl_sym(opts.dl, "glGetString");
- if (!glGetString)
+ if (!glGetString) {
error_get_gl_symbol("glGetString");
+ }
const struct wflinfo_config_attrs config_attrs = {
.api = opts.context_api,
--
2.1.0
More information about the waffle
mailing list