`_WIN32` is for host stuff, `TARGET_WINDOS` is for target stuff.  Command line arguments and output files are host stuff, so use `_WIN32`.  Although I'm pretty sure this isn't followed everywhere.