From 3531f874e0a4168d15f5d321a85f86ba3a37bfac Mon Sep 17 00:00:00 2001 From: Stefan Gartner Date: Tue, 7 Jan 2003 00:18:59 +0000 Subject: added a buch of #ifdef __APPLE__ #include #else #include #endif (also for ) so that people don't have to create symlinks in /System/Library/Frameworks/OpenGL.framework on Mac OS X (Charles Wardlaw) --- source/gameengine/BlenderRoutines/KX_BlenderCanvas.h | 4 ++++ source/gameengine/BlenderRoutines/KX_BlenderGL.cpp | 5 ++++- source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp | 6 +++++- 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'source/gameengine/BlenderRoutines') diff --git a/source/gameengine/BlenderRoutines/KX_BlenderCanvas.h b/source/gameengine/BlenderRoutines/KX_BlenderCanvas.h index 5f8b7541f76..23258f5ea81 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderCanvas.h +++ b/source/gameengine/BlenderRoutines/KX_BlenderCanvas.h @@ -35,7 +35,11 @@ #ifdef WIN32 #include #endif +#ifdef __APPLE__ +#include +#else #include +#endif #include "RAS_ICanvas.h" #include "RAS_Rect.h" diff --git a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp index d8399fd3351..92c2519c583 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp @@ -74,8 +74,11 @@ extern "C" { /* end of blender block */ - +#ifdef __APPLE__ +#include +#else #include +#endif void BL_warp_pointer(int x,int y) diff --git a/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp b/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp index c9e86116052..2049f2ecc61 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp @@ -39,7 +39,11 @@ // OpenGL gl.h needs 'windows.h' on windows platforms #include #endif //WIN32 -#include "GL/gl.h" +#ifdef __APPLE__ +#include +#else +#include +#endif #include "RAS_IRenderTools.h" #include "RAS_IRasterizer.h" -- cgit v1.2.3