Some warnings i get when i use GLFW

nobody wrote on Saturday, March 20, 2004:

I am getting the following warnings:
WHat should i do?

E:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinDef.h(121): warning C4005: ‘APIENTRY’ : macro redefinition
E:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinGDI.h(21): warning C4005: ‘WINGDIAPI’ : macro redefinition

marcus256 wrote on Saturday, March 20, 2004:

You probably include windows.h after including GL/glfw.h.

You don’t need to include windows.h in order to use OpenGL together with GLFW. GL/glfw.h takes care of that. If you DO need to include windows.h, for some other reason, do it BEFORE including GL/glfw.h.

nobody wrote on Sunday, March 21, 2004:

The weird thing is im not including <windows.h> at all, im including only these:

#include <gl/glfw.h>
#include <string>                                        // Include this to use strings
#include <fstream>
#include <list>

#include <il/il.h>
#include <il/ilu.h>
#include <il/ilut.h>

nobody wrote on Sunday, March 21, 2004:

Ok, nvm, putting the #include <gl/glfw.h> below the other header files fixed the problem. But i still dont understand which of the files i listed would include <windows.h>

#include <string>                                        // Include this to use strings
#include <fstream>
#include <list>

#include <il/il.h>
#include <il/ilu.h>
#include <il/ilut.h>

marcus256 wrote on Monday, March 22, 2004:

My guess would be: il

Chanses are, that IL (just like GLFW) only needs a fracation of the defines in windows.h (GLFW only needs two constants). Unfortunately these constants are compiler specific, so as it turned out I had to write a whole bunch of ifdef’s and conditional code into glfw.h in order to replace #include <windows.h>.