summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2019-03-14 15:00:21 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2019-03-29 16:58:16 +0100
commite123f94939d5441f39383102e2af59088889fb96 (patch)
treed03405959979d6441c6ce2521d468167389ef572 /tests
parenta294cad01cc11b0128657ce5929cfb9d9574a394 (diff)
test-marshallers: Fix header guard
test-marshallers.h is missing a #define _H_TEST_MARSHALLERS in order to prevent multiple #include for the same header. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-marshallers.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test-marshallers.h b/tests/test-marshallers.h
index 4eab90f..7686067 100644
--- a/tests/test-marshallers.h
+++ b/tests/test-marshallers.h
@@ -1,6 +1,7 @@
-#include <stdint.h>
+#ifndef H_SPICE_COMMON_TEST_MARSHALLERS
+#define H_SPICE_COMMON_TEST_MARSHALLERS
-#ifndef _H_TEST_MARSHALLERS
+#include <stdint.h>
typedef struct {
uint32_t data_size;
@@ -26,5 +27,5 @@ typedef struct {
uint8_t data[0];
} SpiceMsgMainLenMessage;
-#endif /* _H_TEST_MARSHALLERS */
+#endif /* H_SPICE_COMMON_TEST_MARSHALLERS */