[gnome-builder] util: fix various string includes



commit aabf377002272225fb2dc7718662c21e3a8ef44c
Author: Christian Hergert <chergert redhat com>
Date:   Sun Nov 26 16:03:39 2017 -0800

    util: fix various string includes

 src/libide/buildsystem/ide-build-stage.c           |    2 ++
 src/libide/buildsystem/ide-build-system.c          |    2 ++
 src/libide/runtimes/ide-runtime.c                  |    1 +
 src/libide/vcs/ide-vcs.c                           |    2 ++
 .../autotools/ide-autotools-application-addin.c    |    3 +++
 src/plugins/beautifier/gb-beautifier-helper.c      |    3 ++-
 src/plugins/beautifier/gb-beautifier-process.c     |    3 ++-
 .../code-index/ide-persistent-map-builder.c        |    1 +
 .../flatpak/gbp-flatpak-subprocess-launcher.c      |    4 ++--
 src/tests/test-ide-uri.c                           |    1 +
 10 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/src/libide/buildsystem/ide-build-stage.c b/src/libide/buildsystem/ide-build-stage.c
index a2c2ddf..22185aa 100644
--- a/src/libide/buildsystem/ide-build-stage.c
+++ b/src/libide/buildsystem/ide-build-stage.c
@@ -18,6 +18,8 @@
 
 #define G_LOG_DOMAIN "ide-build-stage"
 
+#include <string.h>
+
 #include "ide-debug.h"
 
 #include "buildsystem/ide-build-pipeline.h"
diff --git a/src/libide/buildsystem/ide-build-system.c b/src/libide/buildsystem/ide-build-system.c
index 0a4c886..2eaff62 100644
--- a/src/libide/buildsystem/ide-build-system.c
+++ b/src/libide/buildsystem/ide-build-system.c
@@ -18,6 +18,8 @@
 
 #define G_LOG_DOMAIN "ide-build-system"
 
+#include <string.h>
+
 #include "ide-context.h"
 #include "ide-debug.h"
 #include "ide-object.h"
diff --git a/src/libide/runtimes/ide-runtime.c b/src/libide/runtimes/ide-runtime.c
index afffb1c..5feef70 100644
--- a/src/libide/runtimes/ide-runtime.c
+++ b/src/libide/runtimes/ide-runtime.c
@@ -19,6 +19,7 @@
 #define G_LOG_DOMAIN "ide-runtime"
 
 #include <dazzle.h>
+#include <string.h>
 
 #include "ide-context.h"
 #include "ide-debug.h"
diff --git a/src/libide/vcs/ide-vcs.c b/src/libide/vcs/ide-vcs.c
index 1a010f7..0e15b86 100644
--- a/src/libide/vcs/ide-vcs.c
+++ b/src/libide/vcs/ide-vcs.c
@@ -18,6 +18,8 @@
 
 #define G_LOG_DOMAIN "ide-vcs"
 
+#include <string.h>
+
 #include "ide-context.h"
 
 #include "buffers/ide-buffer.h"
diff --git a/src/plugins/autotools/ide-autotools-application-addin.c 
b/src/plugins/autotools/ide-autotools-application-addin.c
index 1b0cc8c..6c1a4fa 100644
--- a/src/plugins/autotools/ide-autotools-application-addin.c
+++ b/src/plugins/autotools/ide-autotools-application-addin.c
@@ -18,6 +18,9 @@
 
 #define G_LOG_DOMAIN "ide-autotools-application-addin"
 
+#include <dazzle.h>
+#include <string.h>
+
 #include "ide-autotools-application-addin.h"
 
 struct _IdeAutotoolsApplicationAddin
diff --git a/src/plugins/beautifier/gb-beautifier-helper.c b/src/plugins/beautifier/gb-beautifier-helper.c
index c6334f3..e503402 100644
--- a/src/plugins/beautifier/gb-beautifier-helper.c
+++ b/src/plugins/beautifier/gb-beautifier-helper.c
@@ -18,7 +18,8 @@
 
 #include <glib.h>
 #include <gtksourceview/gtksource.h>
-#include "ide.h"
+#include <ide.h>
+#include <string.h>
 
 #include "gb-beautifier-helper.h"
 
diff --git a/src/plugins/beautifier/gb-beautifier-process.c b/src/plugins/beautifier/gb-beautifier-process.c
index 85a6a09..14431e2 100644
--- a/src/plugins/beautifier/gb-beautifier-process.c
+++ b/src/plugins/beautifier/gb-beautifier-process.c
@@ -18,7 +18,8 @@
 
 #include <glib.h>
 #include <gtksourceview/gtksource.h>
-#include "ide.h"
+#include <ide.h>
+#include <string.h>
 
 #include "gb-beautifier-private.h"
 #include "gb-beautifier-helper.h"
diff --git a/src/plugins/code-index/ide-persistent-map-builder.c 
b/src/plugins/code-index/ide-persistent-map-builder.c
index c133c4d..5c636fd 100644
--- a/src/plugins/code-index/ide-persistent-map-builder.c
+++ b/src/plugins/code-index/ide-persistent-map-builder.c
@@ -19,6 +19,7 @@
 #define G_LOG_DOMAIN "ide-persistent-map-builder"
 
 #include <ide.h>
+#include <string.h>
 
 #include "ide-persistent-map-builder.h"
 
diff --git a/src/plugins/flatpak/gbp-flatpak-subprocess-launcher.c 
b/src/plugins/flatpak/gbp-flatpak-subprocess-launcher.c
index 24432b5..fa74267 100644
--- a/src/plugins/flatpak/gbp-flatpak-subprocess-launcher.c
+++ b/src/plugins/flatpak/gbp-flatpak-subprocess-launcher.c
@@ -69,12 +69,12 @@ gbp_flatpak_subprocess_launcher_spawn (IdeSubprocessLauncher  *launcher,
        */
       for (argpos = 0; argv[argpos] != NULL; argpos++)
         {
-          if (strcmp (argv[argpos], "flatpak") == 0)
+          if (g_strcmp0 (argv[argpos], "flatpak") == 0)
             break;
         }
       for (; argv[argpos] != NULL; argpos++)
         {
-          if (strcmp (argv[argpos], "build") == 0)
+          if (g_strcmp0 (argv[argpos], "build") == 0)
             {
               argpos++;
               break;
diff --git a/src/tests/test-ide-uri.c b/src/tests/test-ide-uri.c
index 1227b93..30c383c 100644
--- a/src/tests/test-ide-uri.c
+++ b/src/tests/test-ide-uri.c
@@ -17,6 +17,7 @@
  */
 
 #include <ide.h>
+#include <string.h>
 
 static void
 test_uri_file (void)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]