On Wed, Jun 08, 2005, Michael Schloh von Bennewitz wrote: > > /* RFC822 format string borrowed from GNU shellutils date.c */ > > - const char *format = "%a, %_d %b %Y %H:%M:%S %z"; > > -+#ifdef __SUNOS__ > > ++#ifdef __sun > > + const char *format = "%a, %d %b %Y %H:%M:%S %Z"; > > +#else > > + const char *format = "%a, %d %b %Y %H:%M:%S %z"; > > > Portable across versions of Solaris and both sparc and intel compilers gcc, > Sun workshop, and others is: > > #if defined (__SVR4) && defined (__sun)
Hmmm... this I still don't understand in full detail. It actually is a stronger condition while your text implies that you would like a weaker one (to conver more combinations). - But independent of all this platform checking issues, I even think we don't need it at all! The "%z" is a platform specific extension, of course. But "%Z" is actually ISO/IEC 9899:1990 (ISO C90) conforming and its output, although not RFC822 conforming, is actually RFC2822 (which obsoletes RFC822) conforming. So, I've now revised this change by not doing any platform checking at all... Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List openpkg-dev@openpkg.org