Wine fails to compile in kernel32

Fabian Maurer dark.shadow4 at web.de
Mon Aug 28 14:41:22 CDT 2017


Hello wine-devel,

I'm running ArchLinux with gcc 7.2.0.
Since commit e99811aee2dff88c41d6e2875401810a85325839 wine fails to build with
> ../../../wine-git/dlls/kernel32/module.c: In function ‘load_library’:
> ../../../wine-git/dlls/kernel32/module.c:987:44: error: initializer element 
is not constant
>      static const DWORD unsupported_flags = load_library_search_flags |

Minimal test-program to show the error, just use something  like "gcc main.c" 
to compile.
----------
static const int load_library_search_flags = 0;
int main()
{
    static const int unsupported_flags = load_library_search_flags;
    return 0;
}
----------

Looks like an compiler error, but I'm not sure. Mind looking into that?

Regards,
Fabian Maurer



More information about the wine-devel mailing list