aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-08-22 19:08:08 +0200
committerWerner Koch <[email protected]>2014-08-25 16:37:46 +0200
commit216e7def2118a1774fa7ebeb45b8635b9fe6ba42 (patch)
treebcccb2ca1de195b79554f8d5fce6a77540829771 /src/init.c
parentFirst set of changes to include estream into the API. (diff)
downloadlibgpg-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/init.c')
-rw-r--r--src/init.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/init.c b/src/init.c
index 40fa2a8..b7cc2fd 100644
--- a/src/init.c
+++ b/src/init.c
@@ -26,10 +26,8 @@
#include <string.h>
#include <errno.h>
-#include <gpg-error.h>
-
+#include "gpgrt-int.h"
#include "gettext.h"
-#include "estream.h"
#include "init.h"
#ifdef HAVE_W32CE_SYSTEM
@@ -365,7 +363,7 @@ _gpg_w32ce_strerror (int err)
void
-gpg_err_set_errno (int err)
+_gpg_err_set_errno (int err)
{
#ifdef HAVE_W32CE_SYSTEM
SetLastError (err);
@@ -430,7 +428,7 @@ DllMain (HINSTANCE hinst, DWORD reason, LPVOID reserved)
#else /*!HAVE_W32_SYSTEM*/
void
-gpg_err_set_errno (int err)
+_gpg_err_set_errno (int err)
{
errno = err;
}