[PATCH v2 1/2] widl: Define _WIN64 for 64-bit targets.

Alexandre Julliard julliard at winehq.org
Thu Dec 23 02:58:09 CST 2021


Bernhard Übelacker <bernhardu at mailbox.org> writes:

> @@ -849,6 +849,8 @@ int main(int argc,char *argv[])
>  
>    add_widl_version_define();
>    wpp_add_cmdline_define("_WIN32=1");
> +  if (pointer_size == 8)
> +    wpp_add_cmdline_define("_WIN64=1");

You can't use #ifdef _WIN64 in idl files, this would make the generated
headers platform-dependent.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list