include/guiddef.h: C++ compatibility patch

Troy Rollo wine at
Wed Aug 31 01:18:36 CDT 2005

The following patch corrects the definition for DEFINE_GUID when INITGUID is 
on and the current language is C++. In such a case an initialised variable 
declared as "const" is implicitly static unless it is explicitly declared as 
also "extern". This patch declares initialised GUIDs as "extern const" so 
that they are visible to other compilation units.

	For C++, declare initialised GUIDs to be "extern const" rather than just
	"const" to ensure that the initialised GUID is visible to other modules.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: guiddef.diffs
Type: text/x-diff
Size: 685 bytes
Desc: not available
Url :

More information about the wine-patches mailing list