On Tue, 27 Oct 2015, Dmitry Timoshkov wrote:
Francois Gouget fgouget@free.fr wrote:
--- a/programs/oleview/typelib.c +++ b/programs/oleview/typelib.c @@ -18,6 +18,8 @@
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define NONAMELESSUNION
That this is needed to compile with the PSDK but not with Wine probably indicates a bug in the Wine headers. What was the compilation error?
..\include\wine/debug.h(334) : error C2039: 'brecVal' : is not a member of 'tagVARIANT'
The Wine header looks ok.
When you say you compile with the PSDK do you mean with the Visual C++ compiler?
I suspect the issue has to do with the __STDC__ and/or _FORCENAMELESSUNION defines. When given the /Za option the Visual C++ compiler defines __STDC__. But that should still work.
However there's a bug in the Microsoft headers because the V_UNION() definition does not take into account _FORCENAMELESSUNION. Is _FORCENAMELESSUNION defined in your compilation? What is the compiler command line?