Improve handling main() with UTF-8 args on Windows

This commit is contained in:
Chris Robinson
2020-08-12 17:40:00 -07:00
parent 476e9d7522
commit fd52c828a9
7 changed files with 94 additions and 62 deletions
-2
View File
@@ -1534,8 +1534,6 @@ int main(int argc, char *argv[])
double limit;
int opt;
GET_UNICODE_ARGS(&argc, &argv);
if(argc < 2)
{
fprintf(stdout, "HRTF Processing and Composition Utility\n\n");
+3
View File
@@ -31,6 +31,9 @@
#include "AL/al.h"
#include "AL/alext.h"
#include "win_main_utf8.h"
#ifndef ALC_ENUMERATE_ALL_EXT
#define ALC_DEFAULT_ALL_DEVICES_SPECIFIER 0x1012
#define ALC_ALL_DEVICES_SPECIFIER 0x1013
+1 -3
View File
@@ -27,10 +27,10 @@
#include <vector>
#include "sofa-support.h"
#include "win_main_utf8.h"
#include "mysofa.h"
#include "win_main_utf8.h"
using uint = unsigned int;
@@ -118,8 +118,6 @@ static void SofaInfo(const char *filename)
int main(int argc, char *argv[])
{
GET_UNICODE_ARGS(&argc, &argv);
if(argc != 2)
{
fprintf(stdout, "Usage: %s <sofa-file>\n", argv[0]);