- add some windows specific defines to BIF_gl.h so that OpenGL can

be used without including windows.h - this is the main reason windows.h
   is included in so many places and this change allows most of those
   inclusions to die.
This commit is contained in:
Daniel Dunbar
2005-03-19 20:48:39 +00:00
parent 35ab8a32a1
commit f74662dcc1

View File

@@ -34,6 +34,24 @@
#ifndef BIF_GL_H
#define BIF_GL_H
/* Although not really a great idea to copy these defines
* from Windows' winnt.h, this lets us use GL without including
* windows.h everywhere (or BLI_winstuff.h) which is a good thing.
*/
#ifdef WIN32
#ifndef APIENTRY
#define APIENTRY __stdcall
#endif
#ifndef CALLBACK
#define CALLBACK __stdcall
#endif
#ifndef WINGDIAPI
#define WINGDIAPI __declspec(dllimport)
#endif
#endif
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>