From dc01deda0019e5af2f76256b36ada4faee34ce86 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 5 Sep 2015 15:36:28 +0000 Subject: [PATCH] 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 --- FL/gl.h | 12 +++++++----- 1 file 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 -# include // makes sure MAC_OS_X_VERSION_10_4 is defined -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4 -# include -#endif +# ifdef FL_LIBRARY +# include +# if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4 +# include +# endif +# endif // FL_LIBRARY # else # include -# endif +# endif // __APPLE__ FL_EXPORT void gl_start(); FL_EXPORT void gl_finish();