[PATCH vkd3d 2/2] demos: Support building on Windows without -DUNICODE.

Alexandre Julliard julliard at winehq.org
Wed Feb 23 09:03:45 CST 2022


Henri Verbeet <hverbeet at gmail.com> writes:

> On Tue, 22 Feb 2022 at 20:00, Alexandre Julliard <julliard at winehq.org> wrote:
>> diff --git a/demos/gears.c b/demos/gears.c
>> index 2045b3cdd842..9ed87b1084cf 100644
>> --- a/demos/gears.c
>> +++ b/demos/gears.c
>> @@ -877,7 +877,7 @@ static int cxg_main(void)
>>      return EXIT_SUCCESS;
>>  }
>>
>> -#ifdef _WIN32
>> +#if defined(_WIN32) && defined(_UNICODE)
>>  int wmain(void)
>>  #else
>>  int main(void)
>
> Shouldn't that check for "defined(UNICODE)" instead? As-is, this
> breaks "make crosstest":

Actually, is there a reason we are using -municode for crosstests?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list