X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/08de440369898e3c87fad011f6d1f1fd82ef3667..2190f6aa153416d1c225532bb026df98b3e273ad:/src/common/dcgraph.cpp diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index bdadaffff8..2b9eb8c97a 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -30,7 +30,7 @@ #include "wx/dcclient.h" -#ifdef __WXOSX__ +#ifdef __WXOSX_OR_COCOA__ #ifdef __WXOSX_IPHONE__ #include #else @@ -228,7 +228,7 @@ void wxGCDCImpl::EndPage() void wxGCDCImpl::Flush() { -#ifdef __WXOSX__ +#ifdef __WXOSX_OR_COCOA__ CGContextFlush( (CGContextRef) m_graphicContext->GetNativeContext() ); #endif }