[Mono-dev] atomic.h

Andreas Färber andreas.faerber at web.de
Mon Jul 16 05:52:33 EDT 2007


Hello,

With the growing number of supported architectures wouldn't it make  
sense to split up atomic.h like the mini files into atomic-ppc.h  
etc.? The whole file is a series of mutually exclusive conditional  
sections.

My suggestion would be to do e.g.
#if ...
#elif defined(__ppc__) || ...
#include "mono/io-layer/atomic-ppc.h"
#elif ...
#else
// keep the fallback definitions in here
#endif

Would that be okay?

Andreas




More information about the Mono-devel-list mailing list