[Clam-devel] Mac OS X -- Cross Compatibiliy -- ByteOrder Patch

Volker Schumacher volker at photone.de
Wed Dec 27 08:17:43 PST 2006

Dear Clam Team,

Thank you so much for your effort on the Clam project, I really love it!

I am experimenting around with Clam since about one year on the Mac  
But I build the project with XCode instead of your build system, and  
all the dependencies as well.
This works fine for me, also some of my dependency XCode projects are  
still a bit messy.
Some like XCode, others don't, for my needs one of the nice features  
in XCode is that it allows to build Universal Binaries in a  
convenient way.
Please let me know if u are interested in offering an XCode project  
file with the Clam distribution, maybe I can help you.

I would like to support the Clam project by helping to take care of  
the mac platform.
So as a first contribution I have a small issue about byte order and  
Intel-compatibility on Mac:

Since Mac OS may run on both Intel and PPC architectures, Apple  
suggests to use the __BIG_ENDIAN__ and __LITTLE_ENDIAN__ macros to  
distinguish endianess in their transition guide. The File Defines/ 
ByteOrder.hxx may then contain something like this:

// --------------------------------------
// Mac OS X

#ifdef __BIG_ENDIAN__
#ifdef __LITTLE_ENDIAN__

// --------------------------------------

I attached a patch for that file.

Best Wishes from Berlin!


..  Volker Schumacher
..  volker at photone.de
..  (49) 0 30 - 80 20 60 60
..  (49) 0 170 - 49 23 094
..  Skype .. volkerschumacher
..  ICQ .. 97 95 37 97
..  Schliemannstr. 38
..  10437 Berlin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20061227/4df94c3e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ByteOrder.patch
Type: application/octet-stream
Size: 1006 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20061227/4df94c3e/attachment-0004.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20061227/4df94c3e/attachment-0001.html>

More information about the clam-devel mailing list