[vlc-devel] [PATCH] prepare for VisualC

Sergey Radionov rsatom at gmail.com
Fri Nov 18 09:38:19 CET 2011


2011/11/18 Sergey Radionov <rsatom at gmail.com>

>
>> #include<objsafe.h>
>>
> Is MINGW32 has this header?
>
In my mingw this file exist, but have no
CATID_SafeForScripting/CATID_SafeForScripting/CATID_InternetAware.

so, I think, we can use you variant:

#ifdef __MINGW32__
#include <_mingw.h>
#endif

#include <objsafe.h>

#if defined(__MINGW64_VERSION_MAJOR) || defined (_MSC_VER)

#include <guiddef.h>

#else /* ! __MINGW64_VERSION_MAJOR */

/*
** Widl generated code requires guiddef.h,
** which is not available under MinGW32
*/
#undef GUID_EXT
#define GUID_EXT
#include <initguid.h>

/*
** Mingw32 do not declare those
*/
/* CATID_InternetAware is declared as extern but not present in library */
DEFINE_GUID(CATID_InternetAware, \
    0x0DE86A58, 0x2BAA, 0x11CF, 0xA2, 0x29, 0x00,0xAA,0x00,0x3D,0x73,0x52);
DEFINE_GUID(CATID_SafeForInitializing, \
    0x7DD95802, 0x9882, 0x11CF, 0x9F, 0xA9, 0x00,0xAA,0x00,0x6C,0x42,0xC4);
DEFINE_GUID(CATID_SafeForScripting, \
    0x7DD95801, 0x9882, 0x11CF, 0x9F, 0xA9, 0x00,0xAA,0x00,0x6C,0x42,0xC4);
#endif /* __MINGW64_VERSION_MAJOR */


Are you agree with me?


> --
> With best wishes,
> Sergey Radionov
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20111118/a9375374/attachment.html>


More information about the vlc-devel mailing list