Two fixes to get unicorn build better with MSVC. (#1136)
* Change MSVC keywords. typename, class, and class are all keywords for MSVC. Adding a suffix for all of them allows a successful compilation under VC 2017 (15.9). * Switch from /ZI to /Zi to avoid crashes at longjmp in debug builds.
This commit is contained in:
@ -276,9 +276,9 @@ DeviceState *qdev_find_recursive(BusState *bus, const char *id);
|
||||
typedef int (qbus_walkerfn)(BusState *bus, void *opaque);
|
||||
typedef int (qdev_walkerfn)(DeviceState *dev, void *opaque);
|
||||
|
||||
void qbus_create_inplace(void *bus, size_t size, const char *typename,
|
||||
void qbus_create_inplace(void *bus, size_t size, const char *typename_,
|
||||
DeviceState *parent, const char *name);
|
||||
BusState *qbus_create(const char *typename, DeviceState *parent, const char *name);
|
||||
BusState *qbus_create(const char *typename_, DeviceState *parent, const char *name);
|
||||
/* Returns > 0 if either devfn or busfn skip walk somewhere in cursion,
|
||||
* < 0 if either devfn or busfn terminate walk somewhere in cursion,
|
||||
* 0 otherwise. */
|
||||
|
Reference in New Issue
Block a user