I don't have a mingw-64 build to work with - could you suggest some #ifdefs that will only be present when doing a mingw-64 build? For example, a cleaner approach might be to leave the existing defines, but add
#if [some kind of mingw64 flag]
#define WinMain wWinMain
#endif
Yes, this define is set to 1 when compiling under mingw-64 in 64-bit mode. I do build for both 32 and 64 archs at the same time.
My build system has two separate toolchains for each arch:
GCC 4.8.1, Mingw-w64 ver 3.1.0, Target: x86_64-w64-mingw32
GCC 4.8.1, Mingw-w64 ver 3.1.0, Target: i686-w64-mingw32
You're right, putting the define as you've suggested in the main file just before START_JUCE_APPLICATION solves the problem. So, no need to change the library code. Thank you for your help!