qemuuaeglue.h: fix problem when compiled with gcc 4.5.4

This commit is contained in:
rofl0r 2014-01-30 23:56:45 +01:00
parent c0376a8f52
commit 1a3d2fb59b

View File

@ -171,10 +171,14 @@ void portio_list_add(PortioList *piolist,
uint32_t addr);
void portio_list_del(PortioList *piolist);
typedef struct IORange IORange;
typedef struct IORangeOps IORangeOps;
typedef struct IORange {
const IORangeOps *ops;
uint64_t base;
uint64_t len;
} IORange;
struct IORangeOps {
void (*read)(IORange *iorange, uint64_t offset, unsigned width,
uint64_t *data);
@ -183,12 +187,6 @@ struct IORangeOps {
void (*destructor)(IORange *iorange);
};
typedef struct IORange {
const IORangeOps *ops;
uint64_t base;
uint64_t len;
} IORange;
typedef void (IOPortWriteFunc)(void *opaque, uint32_t address, uint32_t data);
typedef uint32_t (IOPortReadFunc)(void *opaque, uint32_t address);