Improve handling main() with UTF-8 args on Windows
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user