Fix -Wundef warning in SHLIB_COMPAT

Replace the IS_IN_##lib with IS_IN(lib).  Verified that the generated
code remains the same.

	* include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
This commit is contained in:
Siddhesh Poyarekar 2014-11-19 12:15:01 +05:30
parent 9cd4747089
commit 286663c34b
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2014-11-19 Siddhesh Poyarekar <siddhesh@redhat.com>
* include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
* Makeconfig (in-module): Get value of libof set for the
translation unit.
(CPPFLAGS): Use $(in-module).

View File

@ -41,7 +41,7 @@
# define SHLIB_COMPAT(lib, introduced, obsoleted) \
_SHLIB_COMPAT (lib, introduced, obsoleted)
# define _SHLIB_COMPAT(lib, introduced, obsoleted) \
((IS_IN_##lib - 0) \
(IS_IN (lib) \
&& (!(ABI_##lib##_##obsoleted - 0) \
|| ((ABI_##lib##_##introduced - 0) < (ABI_##lib##_##obsoleted - 0))))