I've downloaded the SDL pak from dev. I tough that SDL is cross platform but when I play it with opengl ( wich suppose to be cross platform too ) the opengl need the windows.h to work. This seems to be happend in Dev-Cpp latest version coz i dont think i encounter such problem in the previouse ver. Is this some kind of "window version" of opengl or there is a way to stop opengl relying using windows.h ?
All help and information are appreciated.
xamc 2@@2 22th Dec.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Greetings,
I've downloaded the SDL pak from dev. I tough that SDL is cross platform but when I play it with opengl ( wich suppose to be cross platform too ) the opengl need the windows.h to work. This seems to be happend in Dev-Cpp latest version coz i dont think i encounter such problem in the previouse ver. Is this some kind of "window version" of opengl or there is a way to stop opengl relying using windows.h ?
All help and information are appreciated.
xamc 2@@2 22th Dec.
i have the same problem with DevC++ and Visual C++ 6.
Use:
#ifdef WIN32
#include <windows.h>
#endif