diff options
author | Werner Koch <[email protected]> | 2014-08-22 17:08:08 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-08-25 14:37:46 +0000 |
commit | 216e7def2118a1774fa7ebeb45b8635b9fe6ba42 (patch) | |
tree | bcccb2ca1de195b79554f8d5fce6a77540829771 /src/strsource.c | |
parent | First set of changes to include estream into the API. (diff) | |
download | libgpg-error-216e7def2118a1774fa7ebeb45b8635b9fe6ba42.tar.gz libgpg-error-216e7def2118a1774fa7ebeb45b8635b9fe6ba42.zip |
Implement symbol visibility.
* configure.ac: New option --enable-ld-version-script.
(GPGRT_USE_VISIBILITY): New ac_define.
(HAVE_LD_VERSION_SCRIPT): New am_conditional.
* src/gpg-error.vers: New.
* src/gpgrt-int.h: New.
* src/visibility.c, src/visibility.h: New. Lot of changes to symbold
names.
--
This is only doe for the old API. The estream API needs to be added.
Diffstat (limited to 'src/strsource.c')
-rw-r--r-- | src/strsource.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/strsource.c b/src/strsource.c index 66d783c..6604eb0 100644 --- a/src/strsource.c +++ b/src/strsource.c @@ -2,17 +2,17 @@ Copyright (C) 2003 g10 Code GmbH This file is part of libgpg-error. - + libgpg-error 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.1 of the License, or (at your option) any later version. - + libgpg-error 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 libgpg-error; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA @@ -30,7 +30,7 @@ /* Return a pointer to a string containing a description of the error source in the error value ERR. */ const char * -gpg_strsource (gpg_error_t err) +_gpg_strsource (gpg_error_t err) { gpg_err_source_t source = gpg_err_source (err); return dgettext (PACKAGE, msgstr + msgidx[msgidxof (source)]); |