crt: use GetEnvironmentVariableW in getopt

The API is available since Windows XP and available in UWP for win8 and win10.

This avoids relying on getenv() from winstorecompat that returns NULL and can't
be reimplemented in a clean way.

Signed-off-by: Martin Storsjö <martin@martin.st>
1 file changed