[Spice-devel] [PATCH] vdagent-win: Fix compile under MingW
Christophe Fergeau
cfergeau at redhat.com
Thu Apr 23 05:28:40 PDT 2015
On Thu, Apr 23, 2015 at 08:22:24AM -0400, Frediano Ziglio wrote:
> Including directly shlobj.h in some MingW environment lead to some missing
> definitions error. Including windows.h before fix the problem.
This is
https://bugzilla.redhat.com/show_bug.cgi?id=1213843 I believe. Since
there was not any actions in this bug, and this patch is small enough,
we can go for it, ACK.
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> vdagent/file_xfer.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/vdagent/file_xfer.cpp b/vdagent/file_xfer.cpp
> index 9e0bcda..c6f3916 100644
> --- a/vdagent/file_xfer.cpp
> +++ b/vdagent/file_xfer.cpp
> @@ -15,6 +15,7 @@
> along with this program. If not, see <http://www.gnu.org/licenses/>.
> */
>
> +#include <windows.h>
> #include <shlobj.h>
> #define __STDC_FORMAT_MACROS
> #define __USE_MINGW_ANSI_STDIO 1
> --
> 2.1.0
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150423/17ce8122/attachment.sig>
More information about the Spice-devel
mailing list