Remove a C99ism from dispatch.

I've decided it's time to accept that building with MSVC 2010 is a way
that people want to use this software.
macos/v1.5.9
Eric Anholt 10 years ago
parent 4d64234e05
commit 28c9c471b2
  1. 3
      src/dispatch_common.c

@ -331,12 +331,13 @@ epoxy_internal_has_gl_extension(const char *ext, bool invalid_op_mode)
return epoxy_extension_in_string(exts, ext); return epoxy_extension_in_string(exts, ext);
} else { } else {
int num_extensions; int num_extensions;
int i;
glGetIntegerv(GL_NUM_EXTENSIONS, &num_extensions); glGetIntegerv(GL_NUM_EXTENSIONS, &num_extensions);
if (num_extensions == 0) if (num_extensions == 0)
return invalid_op_mode; return invalid_op_mode;
for (int i = 0; i < num_extensions; i++) { for (i = 0; i < num_extensions; i++) {
const char *gl_ext = (const char *)glGetStringi(GL_EXTENSIONS, i); const char *gl_ext = (const char *)glGetStringi(GL_EXTENSIONS, i);
if (strcmp(ext, gl_ext) == 0) if (strcmp(ext, gl_ext) == 0)
return true; return true;

Loading…
Cancel
Save