diff options
author | Werner Koch <[email protected]> | 2004-09-30 14:34:34 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-09-30 14:34:34 +0000 |
commit | 335b5e4ac4d1ab56bb9db5addc4f7ca6ce8987f6 (patch) | |
tree | d5a581d9808c8efae6a0c6a1c9a1bd893f3633ed /intl/relocatable.c | |
parent | This commit was manufactured by cvs2svn to create branch (diff) | |
download | gnupg-335b5e4ac4d1ab56bb9db5addc4f7ca6ce8987f6.tar.gz gnupg-335b5e4ac4d1ab56bb9db5addc4f7ca6ce8987f6.zip |
Preparing a new release. Updated gettext
Diffstat (limited to '')
-rw-r--r-- | intl/relocatable.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/intl/relocatable.c b/intl/relocatable.c index 16f79a528..bf7c70854 100644 --- a/intl/relocatable.c +++ b/intl/relocatable.c @@ -42,7 +42,12 @@ #ifdef NO_XMALLOC # define xmalloc malloc #else -# include "xmalloc.h" +# include "xalloc.h" +#endif + +#if defined _WIN32 || defined __WIN32__ +# define WIN32_LEAN_AND_MEAN +# include <windows.h> #endif #if DEPENDS_ON_LIBCHARSET @@ -152,6 +157,8 @@ set_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg) #endif } +#if !defined IN_LIBRARY || (defined PIC && defined INSTALLDIR) + /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular @@ -266,6 +273,8 @@ compute_curr_prefix (const char *orig_installprefix, } } +#endif /* !IN_LIBRARY || PIC */ + #if defined PIC && defined INSTALLDIR /* Full pathname of shared library, or NULL. */ @@ -304,7 +313,8 @@ DllMain (HINSTANCE module_handle, DWORD event, LPVOID reserved) static void find_shared_library_fullname () { -#ifdef __linux__ +#if defined __linux__ && __GLIBC__ >= 2 + /* Linux has /proc/self/maps. glibc 2 has the getline() function. */ FILE *fp; /* Open the current process' maps file. It describes one VMA per line. */ |