aMule Forum

English => Compilation problems => Topic started by: Stu Redman on May 31, 2009, 12:56:23 AM

Title: "HAVE_STRFTIME" redefined
Post by: Stu Redman on May 31, 2009, 12:56:23 AM
This is another wx 2.9 problem. wx 2.9 defines HAVE_STRFTIME in wx/datetime.h , and aMule again in config.h.
Is there a way to exclude it from config.h, or #undef it at the beginning of config.h?
Title: Re: "HAVE_STRFTIME" redefined
Post by: GonoszTopi on May 31, 2009, 05:30:27 PM
Although it is possible to undefine HAVE_STRFTIME in config.h, I'd better file a bug report for wx (I'm pretty sure aMule is not the only application having this problem).

It is never a good idea to define macros in a public header with the name of a well-known and widely used autoconf define.
Title: Re: "HAVE_STRFTIME" redefined
Post by: Stu Redman on May 31, 2009, 08:32:56 PM
Ok, done (http://trac.wxwidgets.org/ticket/10861).
Title: Re: "HAVE_STRFTIME" redefined
Post by: Stu Redman on May 31, 2009, 09:18:11 PM
It took 25min to get fixed. Vadim rocks.  :D
Title: Re: "HAVE_STRFTIME" redefined
Post by: GonoszTopi on June 01, 2009, 11:41:45 AM
True.