提交 eeb61d4f 编写于 作者: P Paolo Bonzini 提交者: Peter Maydell

ppc: avoid typedef redefinitions

These cause compilation failures on CentOS 6 or other operating
systems with older GCCs.

Cc: David Gibson <dgibson@redhat.com>
Cc: qemu-ppc@nongnu.org
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
Message-id: 1488558530-21016-3-git-send-email-pbonzini@redhat.com
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
上级 4ae4b609
...@@ -21,7 +21,6 @@ typedef struct sPAPREventSource sPAPREventSource; ...@@ -21,7 +21,6 @@ typedef struct sPAPREventSource sPAPREventSource;
#define SPAPR_TIMEBASE_FREQ 512000000ULL #define SPAPR_TIMEBASE_FREQ 512000000ULL
typedef struct sPAPRMachineClass sPAPRMachineClass; typedef struct sPAPRMachineClass sPAPRMachineClass;
typedef struct sPAPRMachineState sPAPRMachineState;
#define TYPE_SPAPR_MACHINE "spapr-machine" #define TYPE_SPAPR_MACHINE "spapr-machine"
#define SPAPR_MACHINE(obj) \ #define SPAPR_MACHINE(obj) \
......
...@@ -139,9 +139,9 @@ struct ICSIRQState { ...@@ -139,9 +139,9 @@ struct ICSIRQState {
uint8_t flags; uint8_t flags;
}; };
typedef struct XICSFabric { struct XICSFabric {
Object parent; Object parent;
} XICSFabric; };
#define TYPE_XICS_FABRIC "xics-fabric" #define TYPE_XICS_FABRIC "xics-fabric"
#define XICS_FABRIC(obj) \ #define XICS_FABRIC(obj) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册