From 8a614483c35fce149e0394996420fc5ebc5a1493 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 19 Feb 2009 05:34:48 +0000 Subject: [PATCH] fix for HP aCC, it can't compile rawbmp.h git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/bitmap.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 2cc8b7d78e..7811f87e54 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -21,7 +21,10 @@ #include "wx/colour.h" #endif -#include "wx/rawbmp.h" +// HP aCC for PA-RISC can't compile rawbmp.h +#if !defined(__HP_aCC) || !defined(__hppa) + #include "wx/rawbmp.h" +#endif #include "wx/gtk/private/object.h" @@ -856,6 +859,7 @@ void wxBitmap::PurgeOtherRepresentations(wxBitmap::Representation keep) } } +#if !defined(__HP_aCC) || !defined(__hppa) void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp) { void* bits = NULL; @@ -876,6 +880,7 @@ void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp) void wxBitmap::UngetRawData(wxPixelDataBase& WXUNUSED(data)) { } +#endif bool wxBitmap::HasAlpha() const { -- 2.45.2