From e0c2182937c7d8c53bc265bf420403d91c349496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Mon, 30 Nov 2015 22:52:36 +0100 Subject: [PATCH] Use libcacard.h if possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop unneeded includes (that are already undirectly included). Signed-off-by: Marc-André Lureau --- src/channel-smartcard.c | 4 ---- src/smartcard-manager.c | 6 +++++- src/spicy.c | 5 ----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/channel-smartcard.c b/src/channel-smartcard.c index 942f973..7403431 100644 --- a/src/channel-smartcard.c +++ b/src/channel-smartcard.c @@ -17,10 +17,6 @@ */ #include "config.h" -#ifdef USE_SMARTCARD -#include -#endif - #include "spice-client.h" #include "spice-common.h" diff --git a/src/smartcard-manager.c b/src/smartcard-manager.c index 8e0d239..6578328 100644 --- a/src/smartcard-manager.c +++ b/src/smartcard-manager.c @@ -22,10 +22,14 @@ #include "glib-compat.h" -#ifdef USE_SMARTCARD +#ifdef USE_SMARTCARD_012 #include #include #include +#else +#ifdef USE_SMARTCARD +#include +#endif #endif #include "spice-client.h" diff --git a/src/spicy.c b/src/spicy.c index 67873ed..38ef159 100644 --- a/src/spicy.c +++ b/src/spicy.c @@ -24,11 +24,6 @@ #include #endif -#ifdef USE_SMARTCARD -#include -#include "smartcard-manager.h" -#endif - #include "glib-compat.h" #include "spice-widget.h" #include "spice-gtk-session.h"