]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/glgrab.cpp
Fix wxBitmapButton best size calculation in wxOSX/Carbon.
[wxWidgets.git] / src / osx / core / glgrab.cpp
index ccb2ff76ad51cc6b99e182d2a8fe64fe01fa8d0b..74644b45c782bd1feefb3452913cf813ec892458 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>
@@ -212,3 +216,4 @@ CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect)
     return image;
 }
 
+#endif