Adds the necessary pragmas to your application to use the Windows gui subsystem.
If you mix this in above your main function, you no longer need to use the linker
flags explicitly. It does the necessary version blocks for various compilers and runtimes.
It does nothing if not compiling for Windows, so you need not version it out yourself.
Please note that Windows gui subsystem applications must NOT use std.stdio's stdout and
stderr writeln. It will fail and throw an exception.
This will NOT work with plain dmd on Windows; you must use dmd -m32mscoff or dmd -m64.
Adds the necessary pragmas to your application to use the Windows gui subsystem. If you mix this in above your main function, you no longer need to use the linker flags explicitly. It does the necessary version blocks for various compilers and runtimes.
It does nothing if not compiling for Windows, so you need not version it out yourself.
Please note that Windows gui subsystem applications must NOT use std.stdio's stdout and stderr writeln. It will fail and throw an exception.
This will NOT work with plain dmd on Windows; you must use dmd -m32mscoff or dmd -m64.