On 13.03.2010, at 08:47, manolo gouy wrote:

> Matt:
> 
> About this recent change to remove a compilation warning:
> #   if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
>  if (ctx) aglSetWindowRef(ctx, NULL);
> #    else
>  if (ctx) aglSetDrawable(ctx, NULL);
> #    endif
> 
> Wouldn't it be better to also test for aglSetWindowRef != NULL
> and call aglSetDrawable if not? This allows to compile a program
> on 10.5 or 10.6 and have the resulting executable usable
> on earlier OS versions. A useful thing for program distribution.

Oh, ok, yes sure. I am only slowly picking up this entire Apple versioning 
idea. Would you please do it right, so I can earn from it? 

- Matthias
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to