summaryrefslogtreecommitdiff
path: root/spice/vdi_dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'spice/vdi_dev.h')
-rw-r--r--spice/vdi_dev.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/spice/vdi_dev.h b/spice/vdi_dev.h
index def88fc..a27f395 100644
--- a/spice/vdi_dev.h
+++ b/spice/vdi_dev.h
@@ -34,6 +34,7 @@
#include <spice/types.h>
#include <spice/barrier.h>
#include <spice/ipc_ring.h>
+#include <spice/macros.h>
#include <spice/start-packed.h>
@@ -48,7 +49,7 @@
#define VDI_PORT_INTERRUPT (1 << 0)
-#define VDI_PORT_MAGIC (*(uint32_t*)"VDIP")
+#define VDI_PORT_MAGIC SPICE_MAGIC_CONST("VDIP")
typedef struct SPICE_ATTR_PACKED VDIPortPacket {
uint32_t gen;