Consistent usage of __APPLE_QUARTZ__

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-12-01 15:52:02 +00:00
parent 5f3988e934
commit 04ca835e3a

View File

@ -324,7 +324,7 @@ void Fl_Gl_Window::flush() {
glDrawBuffer(GL_BACK);
if (!SWAP_TYPE) {
#if defined __APPLE_QUARTZ__
#if defined (__APPLE_QUARTZ__)
SWAP_TYPE = COPY;
#else
SWAP_TYPE = UNDEFINED;
@ -529,7 +529,7 @@ void Fl_Gl_Window::draw() {
*/
int Fl_Gl_Window::handle(int event)
{
#if (__APPLE_QUARTZ__)
#ifdef __APPLE_QUARTZ__
if (event==FL_HIDE) {
// if we are not hidden, just the parent was hidden, so we must throw away the context
if (!visible_r())