From: Colin Walters Date: Thu, 1 Nov 2012 23:38:44 +0000 (-0400) Subject: gcharset: Add header file for private API X-Git-Tag: 2.35.2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c2a6595889eff44fa5f610e6c69016702100e95;p=platform%2Fupstream%2Fglib.git gcharset: Add header file for private API This fixes the build with -Werror=missing-prototypes. https://bugzilla.gnome.org/show_bug.cgi?id=687385 --- diff --git a/glib/Makefile.am b/glib/Makefile.am index 276a60b..3168b1a 100644 --- a/glib/Makefile.am +++ b/glib/Makefile.am @@ -131,6 +131,7 @@ libglib_2_0_la_SOURCES = \ gbytes.c \ gbytes.h \ gcharset.c \ + gcharsetprivate.h \ gchecksum.c \ gconvert.c \ gdataset.c \ diff --git a/glib/gcharset.c b/glib/gcharset.c index 4f52ab4..cb08027 100644 --- a/glib/gcharset.c +++ b/glib/gcharset.c @@ -20,7 +20,7 @@ #include "config.h" -#include "gcharset.h" +#include "gcharsetprivate.h" #include "garray.h" #include "genviron.h" diff --git a/glib/gcharsetprivate.h b/glib/gcharsetprivate.h new file mode 100644 index 0000000..17a867f --- /dev/null +++ b/glib/gcharsetprivate.h @@ -0,0 +1,33 @@ +/* gunicodeprivate.h + * + * Copyright (C) 2012 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_CHARSET_PRIVATE_H__ +#define __G_CHARSET_PRIVATE_H__ + +#include "gcharset.h" + +G_BEGIN_DECLS + +G_GNUC_INTERNAL const char ** _g_charset_get_aliases (const char *canonical_name); +; + +G_END_DECLS + +#endif diff --git a/glib/gconvert.c b/glib/gconvert.c index ae25a32..368bef5 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -43,7 +43,7 @@ #include "gconvert.h" -#include "gcharset.h" +#include "gcharsetprivate.h" #include "gslist.h" #include "gstrfuncs.h" #include "gtestutils.h"