Comment 9 for bug 1785191

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

@Nick, I think the problem is fairly trivial (famous last words) to fix in that wmain() should be used instead on main() for windows compilers that support wmain(). Unfortunately, the wxWidgets devs have decided that only msvc supports wmain() which is no longer true (I confirmed by using gcc to compile a simple program with wmain() defined for both 32 and 64 bit versions of gcc). Even worse, they are relying on compiler definitions to determine which compilers support wmain(). This is a flawed design. The existence of wmain() should be checked by compiling a small source file with wmain() during configuration and setting a definition to tell the source code to use wmain() instead of main(). This would work properly for any windows compiler as well as cross compiling where wmain() is declared. Given the what I've seen in wxWidgets, I doubt I would waste my time submitting a patch to fix this properly.