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

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
This commit is contained in:
Matthias Clasen 2008-09-11 16:48:44 +00:00 committed by Matthias Clasen
parent a4942dd6fe
commit dc85674b57
3 changed files with 10 additions and 0 deletions

View File

@ -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

View 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?

View 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)