mirror of https://github.com/fltk/fltk
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:
parent
6242bf0513
commit
dc01deda00
12
FL/gl.h
12
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();
|
||||
|
|
Loading…
Reference in New Issue