<br><br><div class="gmail_quote">2011/11/17 Jean-Baptiste Kempf <span dir="ltr"><<a href="mailto:jb@videolan.org">jb@videolan.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Thu, Nov 17, 2011 at 09:32:37PM +0700, Sergey Radionov wrote :<br>
> +#ifdef _MSC_VER<br>
> +<br>
> +const CATID CATID_SafeForScripting     =<br>
> +    {0x7dd95801, 0x9882, 0x11cf, {0x9f,0xa9,0x00,0xaa,0x00,0x6c,0x42,0xc4}};<br>
> +const CATID CATID_SafeForInitializing  =<br>
> +    {0x7dd95802,0x9882,0x11cf,{0x9f,0xa9,0x00,0xaa,0x00,0x6c,0x42,0xc4}};<br>
> +<br>
> +#else /*!_MSC_VER*/<br>
> +<br>
>  #include <_mingw.h><br>
><br>
>  #ifdef __MINGW64_VERSION_MAJOR<br>
> @@ -60,7 +69,7 @@ static DEFINE_GUID(CATID_SafeForScripting, \<br>
>       0x7DD95801, 0x9882, 0x11CF, 0x9F, 0xA9, 0x00,0xAA,0x00,0x6C,0x42,0xC4);<br>
><br>
>  #endif /* __MINGW64_VERSION_MAJOR */<br>
> -<br>
> +#endif /*_MSC_VER*/<br>
<br>
I don't see why you can't use the same codepath here.<br>
<br></blockquote></div><br>activex/main.cpp:<br><br><i>#ifdef __MINGW32__<br>#include <_mingw.h><br>#endif<br><br>#ifdef __MINGW64_VERSION_MAJOR<br><br>#include <guiddef.h><br>#include <objsafe.h><br><br>
#elif defined(__MINGW32_MAJOR_VERSION)<br><br>/*<br>** Widl generated code requires guiddef.h,<br>** which is not available under MinGW32<br>*/<br>#undef GUID_EXT<br>#define GUID_EXT<br>#include <initguid.h><br><br>
/*<br>** Mingw32 do not declare those<br>*/<br>/* CATID_InternetAware is declared as extern but not present in library */<br>DEFINE_GUID(CATID_InternetAware, \<br>    0x0DE86A58, 0x2BAA, 0x11CF, 0xA2, 0x29, 0x00,0xAA,0x00,0x3D,0x73,0x52);<br>
#endif /* __MINGW64_VERSION_MAJOR */<br><br>#if defined(__MINGW32_MAJOR_VERSION) || defined (_MSC_VER)<br>DEFINE_GUID(CATID_SafeForInitializing, \<br>    0x7DD95802, 0x9882, 0x11CF, 0x9F, 0xA9, 0x00,0xAA,0x00,0x6C,0x42,0xC4);<br>
DEFINE_GUID(CATID_SafeForScripting, \<br>    0x7DD95801, 0x9882, 0x11CF, 0x9F, 0xA9, 0x00,0xAA,0x00,0x6C,0x42,0xC4);<br>#endif<br></i><br><br>Is it better?<br>