On Fri, 2006-10-27 at 17:25 +0100, Darren Kenny wrote: > +#ifndef __sun
It's usually better to test for a certain feature in configure and use if HAVE_foo macros instead of using OS specific macros. If you really want to use OS specific macros, the following is the best test for Solaris: #if defined(sun) && defined(__SVR4) "sun" defined means it's SunOS and __SVR4 means it's Solaris (although it's unlikely that someone would try and compile GNOME on SunOS 4....) This also works with both Sun Studio and gcc. Laca
