Hi (long time no see)!
I used a slightly different workaround for this issue in PartFileConvert.cpp: I placed the line
#undef AddJob
after the section with the includes. The problem is the definition
#define AddJob AddJobW
in mingw/include/winspool.h, which is included by mingw/include/windows.h. Seems to be needed for the functions AddJobA() and AddJobW() in winspool.dll.
Neither my workaround nor Nodsu's is very pretty, I think

The only other solution would be to rename the method AddJob() to anything else, for example AddThisJob(). But the approach of the Mingw include-files with their macro definitions might be a source of further fun to come...
TranferWnd.cpp:
Either wrapwin.h or winundef.h (which is included by wrapwin.h) help getting around this trap. I didn't make any further investigations yet
#ifdef __WXMSW__
//#include <wx/msw/wrapwin.h>
#include <wx/msw/winundef.h>
#endif
My next (and last) problem with today's SVN was an error in OtherFunctions.cpp, which was caused by wrong case-constants in GetMaxConnections() (starting in line 348). I changed the switch statement to
switch ( os ) {
//20070506/Radek - Values for OS-IDs from wx/platinfo.h (wxWidgets 2.9)
// case wxWIN95: return 50; // This includes all Win9x versions
case wxOS_WINDOWS_9X: return 50; // This includes all Win9x versions
// case wxWINDOWS_NT: return 500; // This includes NT based windows
case wxOS_WINDOWS_NT: return 500; // This includes NT based windows
default: return -1; // Anything else. Let aMule decide...
}
After these three little changes (and the aforementioned perl-script issue with switch, of course) I could compile today's SVN! It's the first time since October, 28th 2006, that I was able to do so (also being the first time since that date, that I had time to take a more than cursory glance into the compilation errors

)
BTW: I use wxWindows (wxMSW) 2.9 (CVS).
Now a little testing and I will upload the binaries on my FTP-Server (further information
here)