]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/glgrab.cpp
updated setup.h for OpenVMS
[wxWidgets.git] / src / osx / core / glgrab.cpp
index ccb2ff76ad51cc6b99e182d2a8fe64fe01fa8d0b..83aec47665e98c880a7c62cba615427b8fb252d4 100644 (file)
  OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "wx/wxprec.h"
+
+#if wxOSX_USE_COCOA_OR_CARBON
+
 #import <CoreFoundation/CoreFoundation.h>
 #import <ApplicationServices/ApplicationServices.h>
 #import <OpenGL/OpenGL.h>
 #import <OpenGL/gl.h>
 
+#include "wx/osx/core/private.h"
 #include "wx/osx/private/glgrab.h"
 
 extern CGColorSpaceRef wxMacGetGenericRGBColorSpace();
@@ -212,3 +217,4 @@ CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect)
     return image;
 }
 
+#endif