Re: [Spice-devel] [spice-common v2 6/8] 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 Acked-by: Frediano Ziglio > --- > tests/test-marshallers.h | 7 --- > 1 file 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,7 +1,8 @@ > +#ifndef H_SPICE_COMMON_TEST_MARSHALLERS > +#define H_SPICE_COMMON_TEST_MARSHALLERS > + > #include > > -#ifndef _H_TEST_MARSHALLERS > - > typedef struct { > uint32_t data_size; > uint8_t dummy_byte; > @@ -26,5 +27,5 @@ typedef struct { > uint8_t data[0]; > } SpiceMsgMainLenMessage; > > -#endif /* _H_TEST_MARSHALLERS */ > +#endif /* H_SPICE_COMMON_TEST_MARSHALLERS */ > ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel
[Spice-devel] [spice-common v2 6/8] 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 --- tests/test-marshallers.h | 7 --- 1 file 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,7 +1,8 @@ +#ifndef H_SPICE_COMMON_TEST_MARSHALLERS +#define H_SPICE_COMMON_TEST_MARSHALLERS + #include -#ifndef _H_TEST_MARSHALLERS - typedef struct { uint32_t data_size; uint8_t dummy_byte; @@ -26,5 +27,5 @@ typedef struct { uint8_t data[0]; } SpiceMsgMainLenMessage; -#endif /* _H_TEST_MARSHALLERS */ +#endif /* H_SPICE_COMMON_TEST_MARSHALLERS */ -- 2.21.0 ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel