diff options
author | wm4 <wm4@nowhere> | 2019-06-30 01:29:06 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | 943fc889894e157f0678a5b3e39d3d41f3eda3b7 (patch) | |
tree | d0cc1f8f0d5e23297aa461517ba12b6d07947510 /misc/json.h | |
parent | 3e22ed46b41bd4e6503bc68fff8322ff937add26 (diff) | |
download | mpv-943fc889894e157f0678a5b3e39d3d41f3eda3b7.tar.bz2 mpv-943fc889894e157f0678a5b3e39d3d41f3eda3b7.tar.xz |
win32: remove -municode from mpv binary
If this is used, the runtime expects that wmain() instead of main() is
defined. This caused me severe problems in a certain now irrelevant
case. I think it's a good idea to avoid this special case.
We can just use main() and call GetCommandLineW() instead. This function
returns a single string, so use CommandLineToArgvW() to split it, and
hope it has the same semantics. Should this ever return NULL, hope that
it leaves argc at 0.
Untested, I think.
Diffstat (limited to 'misc/json.h')
0 files changed, 0 insertions, 0 deletions