/win-startup-headers

alternative crt startup headers for size-sensitive executable built by mingw

Primary LanguageCGNU Lesser General Public License v2.1LGPL-2.1

win-startup-headers

alternative crt startup headers for size-sensitive executable built by mingw

Usage

Console Applications

Console Applications use main entry point for ansi and wmain entry point for unicode.

Include main.h for int main(argc,argv) or include mainv.h for int main(), and append -nostartfiles to your compiler parameters.

Windows Applications

Windows Applications use WinMain entry point for ansi and wWinMain entry point for unicode.

Include winmain.h and append -nostartfiles -mwindows -lshlwapi to your compiler parameters.

Note

commandlinetoargva.h is NOT required for a unicode compilation.

License

  • LGPL 2.1+ for commandlinetoargva.h and examples/hello_win.c
  • MIT or LGPL 2.1+ for anything else in this repo

Examples

Check examples folder for examples.

Credits