I encountered this little issue because I included gl3w.c as a header in the very end of gl3w.h because Visual Studio wanted every single .c/.cpp file to include my precompiled header. Since I included gl3w.h after including Windows.h (I define WIN32_LEAN_AND_MEAN), I got a macro redefinition. Most libraries do this - I was surprised that gl3w didn't. Here's a patch for the generator to add the #ifdef guard to the #define WIN32_LEAN_AND_MEAN.
I encountered this little issue because I included
gl3w.c
as a header in the very end ofgl3w.h
because Visual Studio wanted every single.c
/.cpp
file to include my precompiled header. Since I includedgl3w.h
after includingWindows.h
(I defineWIN32_LEAN_AND_MEAN
), I got a macro redefinition. Most libraries do this - I was surprised that gl3w didn't. Here's a patch for the generator to add the#ifdef
guard to the#define WIN32_LEAN_AND_MEAN
.