diff --git a/src/mac/common/glgrab.c b/src/mac/common/glgrab.c index d97a62a168..e372e101c0 100644 --- a/src/mac/common/glgrab.c +++ b/src/mac/common/glgrab.c @@ -35,6 +35,8 @@ #import #import +#if wxMAC_USE_CORE_GRAPHICS + #include "wx/mac/common/glgrab.h" @@ -211,3 +213,5 @@ CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect) /* Returned image has a reference count of 1 */ return image; } + +#endif