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@winehq.org Reporter: sadko4u@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
https://bugs.winehq.org/show_bug.cgi?id=46939
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |4.5 Component|-unknown |build-env Keywords| |download, patch, source
--- Comment #1 from Austin English austinenglish@gmail.com --- https://source.winehq.org/patches/data/162176
https://bugs.winehq.org/show_bug.cgi?id=46939
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |da998cb20677d781f643d498488 | |0f17556c423d9 Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Austin English austinenglish@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commit/da998cb20677d781f643d4984880f1...
https://bugs.winehq.org/show_bug.cgi?id=46939
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.6.
https://bugs.winehq.org/show_bug.cgi?id=46939
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=46939
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.2.