glib/glib/libcharset
Xavier Claessens dcfc9f689e Fix symbol visibility macros on Windows
There is currently no `dllimport` attribute on any of our function,
which prevents MSVC to optimize function calls.

To fix that issue, we need to redeclare all our visibility macros for
each of our libraries, because when compiling e.g. GIO code, we need
dllimport in GLIB headers and dllexport in GIO headers. That means they
cannot use the same GLIB_AVAILABLE_* macro.

Since that's a lot of boilerplate to copy/paste after each version bump,
this MR generate all those macros using a python script.

Also simplify the meson side by using `gnu_symbol_visibility : 'hidden'`
keyword argument instead of passing the cflag manually.

This leaves only API index to add manually into glib-docs.xml when
bumping GLib version. That file cannot be generated because Meson does
not allow passing a buit file to gnome.gtkdoc()'s main_xml kwarg
unfortunately.
2022-10-13 20:53:56 -04:00
..
.gitignore Bug 549771 – improved .gitignore for glib 2008-09-02 18:40:39 +00:00
codeset.m4 Bug 501651 – Update glib/libcharset 2008-05-20 22:49:16 +00:00
config.charset Bug 681685: Transcoding fails on OSX 2012-11-25 16:44:06 +09:00
glibc21.m4 Bug 501651 – Update glib/libcharset 2008-05-20 22:49:16 +00:00
libcharset-glib.patch Bug 501651 – Update glib/libcharset 2008-05-20 22:49:16 +00:00
libcharset.h Bug 501651 – Update glib/libcharset 2008-05-20 22:49:16 +00:00
localcharset.c libcharset: Drop a redundant environment variable 2020-02-07 17:14:46 +00:00
localcharset.h Bug 501651 – Update glib/libcharset 2008-05-20 22:49:16 +00:00
make-patch.sh build: Fix shellcheck warnings in various old build and test scripts 2020-02-27 10:33:45 +00:00
meson.build Fix symbol visibility macros on Windows 2022-10-13 20:53:56 -04:00
README Updated FSF's address 2014-01-31 14:31:55 +01:00
ref-add.sin Bug 501651 – Update glib/libcharset 2008-05-20 22:49:16 +00:00
ref-del.sin Bug 501651 – Update glib/libcharset 2008-05-20 22:49:16 +00:00
update.sh build: Fix shellcheck warnings in various old build and test scripts 2020-02-27 10:33:45 +00:00

The sources are derived from Bruno Haible's libcharset library included
with libiconv:

 http//www.gnu.org/software/libiconv

The 'update.sh' script in this directory, when pointed at
the original sources updates the files in this directory
(and elsewhere in the GLib distribution) to the new version

The 'make-patch.sh' script in this directory regenerates
the patch files included in this directory from a copy
of the pristine sources and the files in this directory.

The license on the portions from libiconv portions is reproduced
below.

Owen Taylor
26 September 2001

Updated to libiconv-1.12.

Behdad Esfahbod
20 May 2008

====

/* Determine a canonical name for the current locale's character encoding.

   Copyright (C) 2000-2001 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU Library General Public License as published
   by the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program 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
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with this program; if not, see <http://www.gnu.org/licenses/>.  */

/* Written by Bruno Haible <haible@clisp.cons.org>.  */