[Spice-devel] [PATCH vd_agent_linux 5/7] Do not include config.h in headers
Frediano Ziglio
fziglio at redhat.com
Thu Jan 3 10:02:45 UTC 2019
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
src/vdagent/x11-priv.h | 4 ----
src/vdagent/x11-randr.c | 1 +
src/vdagent/x11.h | 4 ----
3 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/src/vdagent/x11-priv.h b/src/vdagent/x11-priv.h
index e7c64bd..b31b0a5 100644
--- a/src/vdagent/x11-priv.h
+++ b/src/vdagent/x11-priv.h
@@ -1,10 +1,6 @@
#ifndef VDAGENT_X11_PRIV
#define VDAGENT_X11_PRIV
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
#include <stdint.h>
#include <stdio.h>
diff --git a/src/vdagent/x11-randr.c b/src/vdagent/x11-randr.c
index e461ce1..3d7884e 100644
--- a/src/vdagent/x11-randr.c
+++ b/src/vdagent/x11-randr.c
@@ -21,6 +21,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <config.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <string.h>
diff --git a/src/vdagent/x11.h b/src/vdagent/x11.h
index 1505f58..2117abf 100644
--- a/src/vdagent/x11.h
+++ b/src/vdagent/x11.h
@@ -22,10 +22,6 @@
#ifndef __VDAGENT_X11_H
#define __VDAGENT_X11_H
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
#include <stdio.h>
#include <spice/vd_agent.h>
#include "udscs.h"
--
2.20.1
More information about the Spice-devel
mailing list