www.delorie.com/archives/browse.cgi | search |
On Dec 1 04:13, Brian Dessent wrote: > Corinna Vinschen wrote: > > [ snip sensible explanation that I had actually ran into in the past and > then forgotten about ] > > > > Or is pulluting the namespace with a macro called "timezone" too > > > hideous? In that case we could try declaring it "extern long timezone > > > asm("_timezone");" in the header. > > > > Erm... sorry if my lack of assembler inlining shows, but that really > > works? If so, it looks like a rather elegant solution to me. I'll give > > it a try. > > Oops, I think it should be asm("__timezone") with two leading > underscores, as specifying the assembler name like this bypasses the > compiler automatically adding one. Works like a charm. I like this. I will apply a patch which removes timezone from the exported symbols in libcygwin.a and use the above expression in cygwin/time.h. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |