Bug 548321 – <string.h> is not included in gi18n-lib.h
authorMatthias Clasen <mclasen@redhat.com>
Thu, 11 Sep 2008 16:48:44 +0000 (16:48 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 11 Sep 2008 16:48:44 +0000 (16:48 +0000)
2008-09-11  Matthias Clasen  <mclasen@redhat.com>

        Bug 548321 – <string.h> is not included in gi18n-lib.h

        * glib/gi18n.h:
        * glib/gi18n-lib.h: Include string.h, since strlen is used in
        the macros. Pointed out by Ignacio Casal Quinteiro

svn path=/trunk/; revision=7455

ChangeLog
glib/gi18n-lib.h
glib/gi18n.h

index e9fb7ebbe38f125c00c35f945e88d154a54939ae..d053c3455598790147e1c82439512d1133528b85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-11  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 548321 – <string.h> is not included in gi18n-lib.h
+
+       * glib/gi18n.h:
+       * glib/gi18n-lib.h: Include string.h, since strlen is used in 
+       the macros. Pointed out by Ignacio Casal Quinteiro
+
 2008-09-10  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 551731 – g_date_set_time[_t] docs should mention what timezone
index 105f4d1428eb9b9f9f67c2cb63f21dfeb8e4ea13..ca002a722198e3c8c330c4c1d914c2b23d6a4145 100644 (file)
@@ -23,6 +23,7 @@
 #include <glib.h>
 
 #include <libintl.h>
+#include <string.h>
 
 #ifndef GETTEXT_PACKAGE
 #error You must define GETTEXT_PACKAGE before including gi18n-lib.h.  Did you forget to include config.h?
index b835546446c160e7128d373c92c9db86f614054d..c710046ee7e0e15f551d0dfe446a64ecfd4a9fe7 100644 (file)
@@ -23,6 +23,7 @@
 #include <glib.h>
 
 #include <libintl.h>
+#include <string.h>
 
 #define  _(String) gettext (String)
 #define Q_(String) g_dpgettext (NULL, String, 0)