mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 21:25:30 +08:00
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:
@@ -56,13 +56,15 @@
|
|||||||
|
|
||||||
# ifdef __APPLE__
|
# ifdef __APPLE__
|
||||||
# include <OpenGL/gl.h>
|
# include <OpenGL/gl.h>
|
||||||
# include <FL/x.H> // makes sure MAC_OS_X_VERSION_10_4 is defined
|
# ifdef FL_LIBRARY
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
|
# include <FL/x.H>
|
||||||
|
# if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
|
||||||
# include <OpenGL/glext.h>
|
# include <OpenGL/glext.h>
|
||||||
#endif
|
# endif
|
||||||
|
# endif // FL_LIBRARY
|
||||||
# else
|
# else
|
||||||
# include <GL/gl.h>
|
# include <GL/gl.h>
|
||||||
# endif
|
# endif // __APPLE__
|
||||||
|
|
||||||
FL_EXPORT void gl_start();
|
FL_EXPORT void gl_start();
|
||||||
FL_EXPORT void gl_finish();
|
FL_EXPORT void gl_finish();
|
||||||
|
|||||||
Reference in New Issue
Block a user