[Spice-devel] [PATCH spice-server] Avoid recursive inclusion of headers
Jonathon Jongsma
jjongsma at redhat.com
Thu Oct 20 15:30:33 UTC 2016
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
On Thu, 2016-10-20 at 12:27 +0100, Frediano Ziglio wrote:
> red-common.h included utils.h which included red-common.h
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/utils.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/server/utils.h b/server/utils.h
> index 00631f8..c4b8b1e 100644
> --- a/server/utils.h
> +++ b/server/utils.h
> @@ -18,7 +18,8 @@
> #ifndef UTILS_H_
> # define UTILS_H_
>
> -#include "red-common.h"
> +#include <stdint.h>
> +#include <glib.h>
>
> #define SPICE_GNUC_VISIBLE __attribute__ ((visibility ("default")))
>
More information about the Spice-devel
mailing list