summaryrefslogtreecommitdiff
path: root/FL/gl.h
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-09-05 15:36:28 +0000
committerManolo Gouy <Manolo>2015-09-05 15:36:28 +0000
commitdc01deda0019e5af2f76256b36ada4faee34ce86 (patch)
treef5076932a3aef6efe16da1d41aabc2b1f6a79f59 /FL/gl.h
parent6242bf0513fd16bb4f900b3b2b24c4b0b3c137f3 (diff)
Mac OS platform: Allow compilation of user code with non-Apple compiler.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10853 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/gl.h')
-rw-r--r--FL/gl.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/FL/gl.h b/FL/gl.h
index c4d6abcd8..b59ddc173 100644
--- a/FL/gl.h
+++ b/FL/gl.h
@@ -56,13 +56,15 @@
# ifdef __APPLE__
# include <OpenGL/gl.h>
-# include <FL/x.H> // makes sure MAC_OS_X_VERSION_10_4 is defined
-#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
-# include <OpenGL/glext.h>
-#endif
+# ifdef FL_LIBRARY
+# include <FL/x.H>
+# if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
+# include <OpenGL/glext.h>
+# endif
+# endif // FL_LIBRARY
# else
# include <GL/gl.h>
-# endif
+# endif // __APPLE__
FL_EXPORT void gl_start();
FL_EXPORT void gl_finish();