add autodetect audio driver capability to winmm
Robert Shearman
rob at codeweavers.com
Sun Jul 25 18:00:15 CDT 2004
James Hawkins wrote:
>>This is only available in C99. We try to make Wine compile with as many
>>C compilers as possible, including gcc 2.95, which doesn't allow this
>>sort of thing.
>>
>>
>
>What part of the code is only availabe in C99? I'll try to fix it so
>we can be compatible with other compilers.
>
>
>>> size = sizeof(buffer);
>>>- if (!RegQueryValueExA(hKey, "Drivers", 0, &type, (LPVOID)buffer, &size)) {
>>>+ BOOL keyQueried = !RegQueryValueExA(hKey, "Drivers", 0, &type,
>>>
^^^^ - all variable declarations must be done at the very
start of a block of code.
>>>+ (LPVOID)buffer, &size);
>>>
>>>
>>>
>>This is only available in C99. We try to make Wine compile with as many
>>C compilers as possible, including gcc 2.95, which doesn't allow this
>>sort of thing.
>>
>>
Rob
More information about the wine-devel
mailing list