include/guiddef.h: C++ compatibility patch
wine at troy.rollo.name
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...
Size: 685 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050831/f9257650/guiddef.bin
More information about the wine-patches