From 169d1d643c0ee0c90fa8e393b5298606bbb68cfd Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 7 Jun 2005 03:56:07 +0000 Subject: [PATCH] support mac on little endian systems git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/bitmap.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mac/carbon/bitmap.cpp b/src/mac/carbon/bitmap.cpp index 12ade3f74a..f15aa10143 100644 --- a/src/mac/carbon/bitmap.cpp +++ b/src/mac/carbon/bitmap.cpp @@ -271,9 +271,14 @@ IconRef wxBitmapRefData::GetIconRef() IconFamilyHandle iconFamily = NULL ; +#ifdef WORDS_BIGENDIAN iconFamily = (IconFamilyHandle) NewHandle(8) ; (**iconFamily).resourceType = kIconFamilyType ; (**iconFamily).resourceSize = sizeof(OSType) + sizeof(Size); +#else + // test this solution on big endian as well + iconFamily = (IconFamilyHandle) NewHandle(0) ; +#endif int w = GetWidth() ; int h = GetHeight() ; -- 2.50.0