Test cpp-defined __sun as well as sun, because in strict ANSI mode, only __sun is defined. From Kaveh Ghazi.