Browse Source

Backends: OpenGL3: imgui_impl_opengl3_loader.h: change #define ARRAY_SIZE to GL3W_ARRAY_SIZE to avoid external conflicts (#7017, #7018)

pull/7025/head
codefrog2002 12 months ago
committed by GitHub
parent
commit
c5c1c4134b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      backends/imgui_impl_opengl3_loader.h

4
backends/imgui_impl_opengl3_loader.h

@ -608,7 +608,7 @@ extern "C" {
#include <stdlib.h>
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define GL3W_ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#if defined(_WIN32)
#ifndef WIN32_LEAN_AND_MEAN
@ -800,7 +800,7 @@ GL3W_API union ImGL3WProcs imgl3wProcs;
static void load_procs(GL3WGetProcAddressProc proc)
{
size_t i;
for (i = 0; i < ARRAY_SIZE(proc_names); i++)
for (i = 0; i < GL3W_ARRAY_SIZE(proc_names); i++)
imgl3wProcs.ptr[i] = proc(proc_names[i]);
}

Loading…
Cancel
Save