Browse Source
Older gcc versions (such as the one in SLES11) get confused when you declare a typedef on the same struct twice. To work around that limitation, let's extract the QEMUMachine typedef into a separate header file that is guarded by preprocessor duplicate include checks. This fixes the following type of compile errors for me: In file included from vl.c:125: include/hw/xen/xen.h:39: error: redefinition of typedef "QEMUMachine" include/sysemu/kvm.h:155: error: previous declaration of "QEMUMachine" was here Signed-off-by: Alexander Graf <agraf@suse.de>pull/7/head
6 changed files with 21 additions and 2 deletions
@ -0,0 +1,16 @@ |
|||
/*
|
|||
* QEMU Machine typedef |
|||
* |
|||
* Copyright Alexander Graf <agraf@suse.de> |
|||
* |
|||
* This work is licensed under the terms of the GNU GPL, version 2 or later. |
|||
* See the COPYING file in the top-level directory. |
|||
* |
|||
*/ |
|||
|
|||
#ifndef QEMUMACHINE_H |
|||
#define QEMUMACHINE_H |
|||
|
|||
typedef struct QEMUMachine QEMUMachine; |
|||
|
|||
#endif /* !QEMUMACHINE_H */ |
|||
Loading…
Reference in new issue