1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-02 16:01:20 +03:00

* include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.

(versioned_symbol): Likewise.
	(compat_symbol): Likewise.
This commit is contained in:
Ulrich Drepper
2006-10-07 19:45:55 +00:00
parent feb87ad16d
commit c4f9fc3a99
2 changed files with 15 additions and 5 deletions

View File

@@ -1,5 +1,9 @@
2006-10-07 Ulrich Drepper <drepper@redhat.com> 2006-10-07 Ulrich Drepper <drepper@redhat.com>
* include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
(versioned_symbol): Likewise.
(compat_symbol): Likewise.
* po/tr.po: Update from translation team. * po/tr.po: Update from translation team.
2006-10-06 Ulrich Drepper <drepper@redhat.com> 2006-10-06 Ulrich Drepper <drepper@redhat.com>

View File

@@ -1,5 +1,5 @@
/* Macros for managing ABI-compatibility definitions using ELF symbol versions. /* Macros for managing ABI-compatibility definitions using ELF symbol versions.
Copyright (C) 2000, 2002 Free Software Foundation, Inc. Copyright (C) 2000, 2002, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -44,6 +44,8 @@
in the GLIBC_2.0 version and obsoleted in the GLIBC_2.2 version. */ in the GLIBC_2.0 version and obsoleted in the GLIBC_2.2 version. */
# define SHLIB_COMPAT(lib, introduced, obsoleted) \ # define SHLIB_COMPAT(lib, introduced, obsoleted) \
_SHLIB_COMPAT (lib, introduced, obsoleted)
# define _SHLIB_COMPAT(lib, introduced, obsoleted) \
((IS_IN_##lib - 0) \ ((IS_IN_##lib - 0) \
&& (!(ABI_##lib##_##obsoleted - 0) \ && (!(ABI_##lib##_##obsoleted - 0) \
|| ((ABI_##lib##_##introduced - 0) < (ABI_##lib##_##obsoleted - 0)))) || ((ABI_##lib##_##introduced - 0) < (ABI_##lib##_##obsoleted - 0))))
@@ -62,13 +64,17 @@
shlib-versions if that is newer. */ shlib-versions if that is newer. */
# define versioned_symbol(lib, local, symbol, version) \ # define versioned_symbol(lib, local, symbol, version) \
versioned_symbol_1 (local, symbol, VERSION_##lib##_##version) versioned_symbol_1 (lib, local, symbol, version)
# define versioned_symbol_1(local, symbol, name) \ # define versioned_symbol_1(lib, local, symbol, version) \
versioned_symbol_2 (local, symbol, VERSION_##lib##_##version)
# define versioned_symbol_2(local, symbol, name) \
default_symbol_version (local, symbol, name) default_symbol_version (local, symbol, name)
# define compat_symbol(lib, local, symbol, version) \ # define compat_symbol(lib, local, symbol, version) \
compat_symbol_1 (local, symbol, VERSION_##lib##_##version) compat_symbol_1 (lib, local, symbol, version)
# define compat_symbol_1(local, symbol, name) \ # define compat_symbol_1(lib, local, symbol, version) \
compat_symbol_2 (local, symbol, VERSION_##lib##_##version)
# define compat_symbol_2(local, symbol, name) \
symbol_version (local, symbol, name) symbol_version (local, symbol, name)
#else #else