<div dir="ltr">ack<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 30, 2014 at 1:56 PM, Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">gnulib 'make syntax-check' prohibits use of #ifdef HAVE_CONFIG_H so this<br>
commit removes it from where it's used. It also makes sure we always use<br>
the same syntax for including config.h (#include "config.h" VS #include<br>
<config.h>) as a consistent way of doing that is expected.<br>
---<br>
 gtk/channel-display.c                        | 2 --<br>
 gtk/continuation.c                           | 2 +-<br>
 gtk/controller/dump.c                        | 2 --<br>
 gtk/controller/namedpipe.c                   | 2 +-<br>
 gtk/controller/namedpipeconnection.c         | 2 +-<br>
 gtk/controller/namedpipelistener.c           | 2 +-<br>
 gtk/controller/spice-controller-listener.c   | 1 +<br>
 gtk/controller/spice-foreign-menu-listener.c | 1 +<br>
 gtk/controller/test.c                        | 2 --<br>
 gtk/controller/win32-util.c                  | 2 +-<br>
 gtk/coroutine_gthread.c                      | 2 +-<br>
 gtk/coroutine_ucontext.c                     | 2 +-<br>
 gtk/coroutine_winfibers.c                    | 2 +-<br>
 gtk/smartcard-manager-priv.h                 | 2 --<br>
 gtk/spice-audio.c                            | 2 --<br>
 gtk/spice-channel-priv.h                     | 2 --<br>
 gtk/spice-client-glib-usb-acl-helper.c       | 4 +---<br>
 gtk/spice-client-gtk-module.c                | 1 +<br>
 gtk/spice-cmdline.c                          | 4 +---<br>
 gtk/spice-grabsequence.c                     | 2 +-<br>
 gtk/spice-gstaudio.c                         | 2 --<br>
 gtk/spice-option.c                           | 4 +---<br>
 gtk/spice-util.c                             | 4 +---<br>
 gtk/spice-widget-priv.h                      | 2 --<br>
 gtk/spicy-screenshot.c                       | 4 +---<br>
 gtk/spicy-stats.c                            | 4 +---<br>
 gtk/spicy.c                                  | 4 +---<br>
 gtk/usbutil.c                                | 4 +---<br>
 gtk/win-usb-dev.c                            | 2 --<br>
 gtk/win-usb-driver-install.c                 | 2 --<br>
 30 files changed, 20 insertions(+), 53 deletions(-)<br>
<br>
diff --git a/gtk/channel-display.c b/gtk/channel-display.c<br>
index 1e1312c..940a5a7 100644<br>
--- a/gtk/channel-display.c<br>
+++ b/gtk/channel-display.c<br>
@@ -15,9 +15,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
<br>
 #ifdef HAVE_SYS_TYPES_H<br>
 #include <sys/types.h><br>
diff --git a/gtk/continuation.c b/gtk/continuation.c<br>
index e33d05a..adce858 100644<br>
--- a/gtk/continuation.c<br>
+++ b/gtk/continuation.c<br>
@@ -17,7 +17,7 @@<br>
  * License along with this library; if not, write to the Free Software<br>
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA<br>
  */<br>
-#include <config.h><br>
+#include "config.h"<br>
<br>
 /* keep this above system headers, but below config.h */<br>
 #ifdef _FORTIFY_SOURCE<br>
diff --git a/gtk/controller/dump.c b/gtk/controller/dump.c<br>
index 5e951df..831a1d7 100644<br>
--- a/gtk/controller/dump.c<br>
+++ b/gtk/controller/dump.c<br>
@@ -13,9 +13,7 @@<br>
 /* You should have received a copy of the GNU Lesser General Public */<br>
 /* License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>. */<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
<br>
 #include <stdio.h><br>
 #include <stdint.h><br>
diff --git a/gtk/controller/namedpipe.c b/gtk/controller/namedpipe.c<br>
index 6859770..5312218 100644<br>
--- a/gtk/controller/namedpipe.c<br>
+++ b/gtk/controller/namedpipe.c<br>
@@ -14,7 +14,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-<br>
+#include "config.h"<br>
 #include "namedpipe.h"<br>
<br>
 #include <windows.h><br>
diff --git a/gtk/controller/namedpipeconnection.c b/gtk/controller/namedpipeconnection.c<br>
index 1e84e9f..3173b61 100644<br>
--- a/gtk/controller/namedpipeconnection.c<br>
+++ b/gtk/controller/namedpipeconnection.c<br>
@@ -14,7 +14,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-<br>
+#include "config.h"<br>
 #include "namedpipeconnection.h"<br>
<br>
 #include <windows.h><br>
diff --git a/gtk/controller/namedpipelistener.c b/gtk/controller/namedpipelistener.c<br>
index 28b2a4d..820c606 100644<br>
--- a/gtk/controller/namedpipelistener.c<br>
+++ b/gtk/controller/namedpipelistener.c<br>
@@ -14,7 +14,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-<br>
+#include "config.h"<br>
 #include "namedpipelistener.h"<br>
<br>
 #include <windows.h><br>
diff --git a/gtk/controller/spice-controller-listener.c b/gtk/controller/spice-controller-listener.c<br>
index 0189848..98baf33 100644<br>
--- a/gtk/controller/spice-controller-listener.c<br>
+++ b/gtk/controller/spice-controller-listener.c<br>
@@ -15,6 +15,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
+#include "config.h"<br>
<br>
 #include <glib.h><br>
 #include <glib/gstdio.h><br>
diff --git a/gtk/controller/spice-foreign-menu-listener.c b/gtk/controller/spice-foreign-menu-listener.c<br>
index 6693e21..5e62606 100644<br>
--- a/gtk/controller/spice-foreign-menu-listener.c<br>
+++ b/gtk/controller/spice-foreign-menu-listener.c<br>
@@ -15,6 +15,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
+#include "config.h"<br>
<br>
 #include <glib.h><br>
 #include <glib/gstdio.h><br>
diff --git a/gtk/controller/test.c b/gtk/controller/test.c<br>
index f426669..c08fe21 100644<br>
--- a/gtk/controller/test.c<br>
+++ b/gtk/controller/test.c<br>
@@ -13,9 +13,7 @@<br>
 /* You should have received a copy of the GNU Lesser General Public */<br>
 /* License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>. */<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
<br>
 #include <stdio.h><br>
 #include <stdint.h><br>
diff --git a/gtk/controller/win32-util.c b/gtk/controller/win32-util.c<br>
index ea68814..c3e0400 100644<br>
--- a/gtk/controller/win32-util.c<br>
+++ b/gtk/controller/win32-util.c<br>
@@ -14,7 +14,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-<br>
+#include "config.h"<br>
 #include "win32-util.h"<br>
 #include <windows.h><br>
 #include <sddl.h><br>
diff --git a/gtk/coroutine_gthread.c b/gtk/coroutine_gthread.c<br>
index cfeac1a..b0098fa 100644<br>
--- a/gtk/coroutine_gthread.c<br>
+++ b/gtk/coroutine_gthread.c<br>
@@ -18,7 +18,7 @@<br>
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA<br>
  */<br>
<br>
-#include <config.h><br>
+#include "config.h"<br>
<br>
 #include "coroutine.h"<br>
 #include <stdio.h><br>
diff --git a/gtk/coroutine_ucontext.c b/gtk/coroutine_ucontext.c<br>
index 46899e7..d709a33 100644<br>
--- a/gtk/coroutine_ucontext.c<br>
+++ b/gtk/coroutine_ucontext.c<br>
@@ -18,7 +18,7 @@<br>
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA<br>
  */<br>
<br>
-#include <config.h><br>
+#include "config.h"<br>
 #include <glib.h><br>
<br>
 #ifdef HAVE_SYS_TYPES_H<br>
diff --git a/gtk/coroutine_winfibers.c b/gtk/coroutine_winfibers.c<br>
index 6f96c74..a56d33d 100644<br>
--- a/gtk/coroutine_winfibers.c<br>
+++ b/gtk/coroutine_winfibers.c<br>
@@ -18,7 +18,7 @@<br>
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA<br>
  */<br>
<br>
-#include <config.h><br>
+#include "config.h"<br>
 #include <stdio.h><br>
 #include <glib.h><br>
<br>
diff --git a/gtk/smartcard-manager-priv.h b/gtk/smartcard-manager-priv.h<br>
index f408d1f..409c1c5 100644<br>
--- a/gtk/smartcard-manager-priv.h<br>
+++ b/gtk/smartcard-manager-priv.h<br>
@@ -18,9 +18,7 @@<br>
 #ifndef __SMARTCARD_MANAGER_PRIV_H__<br>
 #define __SMARTCARD_MANAGER_PRIV_H__<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
 #include <gio/gio.h><br>
 #include "spice-session.h"<br>
<br>
diff --git a/gtk/spice-audio.c b/gtk/spice-audio.c<br>
index dbd3a8b..e7af7d5 100644<br>
--- a/gtk/spice-audio.c<br>
+++ b/gtk/spice-audio.c<br>
@@ -32,9 +32,7 @@<br>
  * application, and connect them to the default sound system.<br>
  */<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
<br>
 #include "spice-client.h"<br>
 #include "spice-common.h"<br>
diff --git a/gtk/spice-channel-priv.h b/gtk/spice-channel-priv.h<br>
index 6067abc..07012db 100644<br>
--- a/gtk/spice-channel-priv.h<br>
+++ b/gtk/spice-channel-priv.h<br>
@@ -18,9 +18,7 @@<br>
 #ifndef __SPICE_CLIENT_CHANNEL_PRIV_H__<br>
 #define __SPICE_CLIENT_CHANNEL_PRIV_H__<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
<br>
 #include <openssl/ssl.h><br>
 #include <gio/gio.h><br>
diff --git a/gtk/spice-client-glib-usb-acl-helper.c b/gtk/spice-client-glib-usb-acl-helper.c<br>
index fe247ac..bc09776 100644<br>
--- a/gtk/spice-client-glib-usb-acl-helper.c<br>
+++ b/gtk/spice-client-glib-usb-acl-helper.c<br>
@@ -20,9 +20,7 @@<br>
    with this program; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
-# include "config.h"<br>
-#endif<br>
+#include "config.h"<br>
<br>
 #include <ctype.h><br>
 #include <errno.h><br>
diff --git a/gtk/spice-client-gtk-module.c b/gtk/spice-client-gtk-module.c<br>
index e93b19d..b82f1e3 100644<br>
--- a/gtk/spice-client-gtk-module.c<br>
+++ b/gtk/spice-client-gtk-module.c<br>
@@ -15,6 +15,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
+#include "config.h"<br>
 #include <pygobject.h><br>
<br>
 void spice_register_classes (PyObject *d);<br>
diff --git a/gtk/spice-cmdline.c b/gtk/spice-cmdline.c<br>
index bb4b630..8619b57 100644<br>
--- a/gtk/spice-cmdline.c<br>
+++ b/gtk/spice-cmdline.c<br>
@@ -15,9 +15,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-#ifdef HAVE_CONFIG_H<br>
-# include "config.h"<br>
-#endif<br>
+#include "config.h"<br>
 #include <glib/gi18n.h><br>
<br>
 #include "spice-client.h"<br>
diff --git a/gtk/spice-grabsequence.c b/gtk/spice-grabsequence.c<br>
index 5d6fa9f..39adfb0 100644<br>
--- a/gtk/spice-grabsequence.c<br>
+++ b/gtk/spice-grabsequence.c<br>
@@ -18,7 +18,7 @@<br>
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA<br>
  */<br>
<br>
-#include <config.h><br>
+#include "config.h"<br>
<br>
 #include <string.h><br>
 #include <gdk/gdk.h><br>
diff --git a/gtk/spice-gstaudio.c b/gtk/spice-gstaudio.c<br>
index faa0c74..69bfa78 100644<br>
--- a/gtk/spice-gstaudio.c<br>
+++ b/gtk/spice-gstaudio.c<br>
@@ -15,9 +15,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
<br>
 #include <gst/gst.h><br>
 #include <gst/app/gstappsrc.h><br>
diff --git a/gtk/spice-option.c b/gtk/spice-option.c<br>
index 05735ba..958e03c 100644<br>
--- a/gtk/spice-option.c<br>
+++ b/gtk/spice-option.c<br>
@@ -15,9 +15,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-#ifdef HAVE_CONFIG_H<br>
-# include "config.h"<br>
-#endif<br>
+#include "config.h"<br>
<br>
 #include <stdlib.h><br>
 #include <glib-object.h><br>
diff --git a/gtk/spice-util.c b/gtk/spice-util.c<br>
index 4d26a30..bec237b 100644<br>
--- a/gtk/spice-util.c<br>
+++ b/gtk/spice-util.c<br>
@@ -16,9 +16,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-#ifdef HAVE_CONFIG_H<br>
-# include "config.h"<br>
-#endif<br>
+#include "config.h"<br>
<br>
 #include <stdbool.h><br>
 #include <stdlib.h><br>
diff --git a/gtk/spice-widget-priv.h b/gtk/spice-widget-priv.h<br>
index 8be0644..9c38e2e 100644<br>
--- a/gtk/spice-widget-priv.h<br>
+++ b/gtk/spice-widget-priv.h<br>
@@ -20,9 +20,7 @@<br>
<br>
 G_BEGIN_DECLS<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
<br>
 #ifdef WITH_X11<br>
 #include <X11/Xlib.h><br>
diff --git a/gtk/spicy-screenshot.c b/gtk/spicy-screenshot.c<br>
index b60fb42..e7835bf 100644<br>
--- a/gtk/spicy-screenshot.c<br>
+++ b/gtk/spicy-screenshot.c<br>
@@ -15,9 +15,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-#ifdef HAVE_CONFIG_H<br>
-# include "config.h"<br>
-#endif<br>
+#include "config.h"<br>
 #include <glib/gi18n.h><br>
<br>
 #include "spice-client.h"<br>
diff --git a/gtk/spicy-stats.c b/gtk/spicy-stats.c<br>
index e236223..c98148d 100644<br>
--- a/gtk/spicy-stats.c<br>
+++ b/gtk/spicy-stats.c<br>
@@ -15,9 +15,7 @@<br>
    You should have received a copy of the GNU Lesser General Public<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
-#ifdef HAVE_CONFIG_H<br>
-# include "config.h"<br>
-#endif<br>
+#include "config.h"<br>
 #include <glib/gi18n.h><br>
<br>
 #include "spice-client.h"<br>
diff --git a/gtk/spicy.c b/gtk/spicy.c<br>
index 80d53b4..2fcd529 100644<br>
--- a/gtk/spicy.c<br>
+++ b/gtk/spicy.c<br>
@@ -16,9 +16,7 @@<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
-# include "config.h"<br>
-#endif<br>
+#include "config.h"<br>
 #include <glib/gi18n.h><br>
<br>
 #include <sys/stat.h><br>
diff --git a/gtk/usbutil.c b/gtk/usbutil.c<br>
index 18fb14c..16d757b 100644<br>
--- a/gtk/usbutil.c<br>
+++ b/gtk/usbutil.c<br>
@@ -19,9 +19,7 @@<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
-# include "config.h"<br>
-#endif<br>
+#include "config.h"<br>
<br>
 #include <glib-object.h><br>
 #include <glib/gi18n.h><br>
diff --git a/gtk/win-usb-dev.c b/gtk/win-usb-dev.c<br>
index 14ab7af..1e4b2d6 100644<br>
--- a/gtk/win-usb-dev.c<br>
+++ b/gtk/win-usb-dev.c<br>
@@ -20,9 +20,7 @@<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
<br>
 #include <windows.h><br>
 #include <libusb.h><br>
diff --git a/gtk/win-usb-driver-install.c b/gtk/win-usb-driver-install.c<br>
index 928b38f..e17287a 100644<br>
--- a/gtk/win-usb-driver-install.c<br>
+++ b/gtk/win-usb-driver-install.c<br>
@@ -25,9 +25,7 @@<br>
  * Each installer (instance) requests driver installation for a single device.<br>
  */<br>
<br>
-#ifdef HAVE_CONFIG_H<br>
 #include "config.h"<br>
-#endif<br>
<br>
 #include <windows.h><br>
 #include <gio/gio.h><br>
<span class="HOEnZb"><font color="#888888">--<br>
2.1.0<br>
<br>
_______________________________________________<br>
Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Marc-André Lureau
</div>