summaryrefslogtreecommitdiffstats
path: root/include/GL/glext.h
diff options
context:
space:
mode:
authorKarl Schultz <[email protected]>2002-10-17 19:39:31 +0000
committerKarl Schultz <[email protected]>2002-10-17 19:39:31 +0000
commit3e2fa3fd5cafdc641138844276c4260e028684ac (patch)
tree79ac52161e441573b1291199e892f8750ad0d80f /include/GL/glext.h
parentbc36ee25d88b8330237490a2a803d8fd7f790e7a (diff)
Change for Windows only: Make demos and examples build again.
Move the inclusion of windows.h from glext.h to gl.h. There are a few good reasons for this: - Including it in gl.h is more strightforward and makes it easier to troubleshoot include file problems. It was sometimes hard to find it in glext.h. - Needed to define APIENTRY correctly. APIENTRY is used in gl.h. - glut.h needs windows.h but does not include it, expecting the app to include it. Including it in gl.h if not already included by the app makes glut.h happy. This allows one to write a gl/glut app without explictly including windows.h, which may only be really important for toy apps like our samples and demos. But a "real" app can still include windows.h if it wants.
Diffstat (limited to 'include/GL/glext.h')
-rw-r--r--include/GL/glext.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/GL/glext.h b/include/GL/glext.h
index 245f100c706..f88d7e79b3a 100644
--- a/include/GL/glext.h
+++ b/include/GL/glext.h
@@ -34,11 +34,6 @@ extern "C" {
** version 1.2.1 Specification.
*/
-#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
-#define WIN32_LEAN_AND_MEAN 1
-#include <windows.h>
-#endif
-
#ifndef APIENTRY
#define APIENTRY
#endif