|
While we were diligently compiling and maintaining it, the WinMain
entry point was completely unused for quite some time now
(if it was ever used).
gcc is perfectly happy with the standard main() entry point and even
MSVC should be able to work with alternative entry point names
(if anybody was bold enough to actually compile Inkscape that way)
Note regarding code for output redirection:
The code that was introduced in 378a6384e55bdb8c5750c051fd91302f64d2b69a
in order to achieve console output from inkscape.exe
(see comment in winconsole.cpp why this does not work by default)
works in principle, but has a number of issues
- it immediately exits (control is returned to the console)
rendering it unsuitable (or even harmful) for script usage
- despite returning control to the console Inkscape continues to
print messages to it messing up any other output
- standard input (stdin) is not working at all
The solution of using console wrappers from b8859cd12327c84f5ca8d4bf8614f0d0913d3c25
is therefore still the preferable solution, see also
https://bugs.launchpad.net/inkscape/+bug/520532 for details.
|