OSDN Git Service

[VM] device.h : selectable shared device or not shared.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Sat, 4 Feb 2017 02:56:59 +0000 (11:56 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Sat, 4 Feb 2017 02:56:59 +0000 (11:56 +0900)
source/src/vm/device.h

index e03ae12..2a6d74c 100644 (file)
@@ -47,6 +47,9 @@
 #define SIG_SCSI_ACK           309
 #define SIG_SCSI_RST           310
 
+#if defined(USE_DEVICES_SHARED_LIB)
+#include "libcpu_newdev/device.h"
+#else
 class DEVICE
 {
 protected:
@@ -780,5 +783,6 @@ public:
        DEVICE* next_device;
        int this_device_id;
 };
+#endif //USE_DEVICES_SHARED_LIB
 
 #endif