Skip to content

Commit

Permalink
qga: Fix compilation for old versions of MinGW
Browse files Browse the repository at this point in the history
While MinGW-w64 can compile the qga code, MinGW from Debian lenny
(gcc-mingw32 4.4.2-3) shows these errors:

In file included from qga/vss-win32.c:17:
qga/vss-win32/requester.h:31:
 error: expected »=«, »,«, »;«, »asm« or »__attribute__« before »requester_init«
qga/vss-win32/requester.h:32:
 error: expected »=«, »,«, »;«, »asm« or »__attribute__« before »requester_deinit«

The macro STDAPI is unknown, so add the missing include file which
defines it.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
stweil authored and Michael Tokarev committed Nov 13, 2013
1 parent fe863ab commit ba1c293
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qga/vss-win32/requester.h
Expand Up @@ -13,6 +13,7 @@
#ifndef VSS_WIN32_REQUESTER_H
#define VSS_WIN32_REQUESTER_H

#include <basetyps.h> /* STDAPI */
#include "qemu/compiler.h"

#ifdef __cplusplus
Expand Down

0 comments on commit ba1c293

Please sign in to comment.