[Bug 46939] New: propvarutil.h: missing extern "C"

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Mar 31 12:30:04 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=46939

            Bug ID: 46939
           Summary: propvarutil.h: missing extern "C"
           Product: Wine
           Version: unspecified
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: sadko4u at gmail.com
      Distribution: ---

This header is a part of MinGW-W64 compiler.
When trying to #include <propvarutil.h> and use the 'PropVariantToInt64'
function, we get a linker error.

Looking for the latest master branch:
https://github.com/wine-mirror/wine/blob/master/include/propvarutil.h

Seems that there is no extern "C" around function prototypes.
Such workaround fixes the problem:

#include <shtypes.h>
#include <shlwapi.h>

#if defined(__cplusplus)
extern "C" {
#endif

#include <propvarutil.h>

#if defined(__cplusplus)
}
#endif

Fixes the problem

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list