CVS: winex/include objbase.h,1.10,1.11

[email protected] 14 Dec 2007 20:22:51 -0000
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/include objbase.h,1.10,1.11Update of /var/lib/cvsd/cvsroot/winex/include
In directory agravaine:/tmp/cvs-serv15831/include

Modified Files:
	objbase.h 
Log Message:
Define COBJMACROS for purposes of compiling Cedega.


Index: objbase.h
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/include/objbase.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- objbase.h	14 Dec 2007 20:22:33 -0000	1.10
+++ objbase.h	14 Dec 2007 20:22:49 -0000	1.11
@@ -620,6 +620,15 @@
 #define BEGIN_INTERFACE
 #define END_INTERFACE
 
+#if defined(__WINE__)
+/* HACK: headers generated by new widl needs COBJMACROS to be defined
+ * in order to define those convenient method call macros, but most of
+ * our current code isn't defining it. So, to remain backwards-compatible
+ * with old code (or, rather, because I'm too lazy to change every
+ * single source file that use COM) I'll just define it here. */
+#define COBJMACROS
+#endif
+
 #endif /* __cplusplus && !CINTERFACE */
 
 #ifndef RC_INVOKED