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: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1488558530-21016-3-git-send-email-pbonzini@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Paolo Bonzini 2017-03-03 17:28:50 +01:00 committed by Peter Maydell
parent 4ae4b609ee
commit eeb61d4f82
2 changed files with 2 additions and 3 deletions

View File

@ -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) \

View File

@ -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) \