gcharset: Add header file for private API

This fixes the build with -Werror=missing-prototypes.

https://bugzilla.gnome.org/show_bug.cgi?id=687385
This commit is contained in:
Colin Walters 2012-11-01 19:38:44 -04:00
parent 488cdb13f6
commit 4c2a659588
4 changed files with 36 additions and 2 deletions

View File

@ -131,6 +131,7 @@ libglib_2_0_la_SOURCES = \
gbytes.c \
gbytes.h \
gcharset.c \
gcharsetprivate.h \
gchecksum.c \
gconvert.c \
gdataset.c \

View File

@ -20,7 +20,7 @@
#include "config.h"
#include "gcharset.h"
#include "gcharsetprivate.h"
#include "garray.h"
#include "genviron.h"

33
glib/gcharsetprivate.h Normal file
View File

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

View File

@ -43,7 +43,7 @@
#include "gconvert.h"
#include "gcharset.h"
#include "gcharsetprivate.h"
#include "gslist.h"
#include "gstrfuncs.h"
#include "gtestutils.h"