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
This commit is contained in:
Manolo Gouy 2015-09-05 15:36:28 +00:00
parent 6242bf0513
commit dc01deda00
1 changed files with 7 additions and 5 deletions

12
FL/gl.h
View File

@ -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();