[02/19] Fix -Wundef warning in SHLIB_COMPAT
Commit Message
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.
---
include/shlib-compat.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
That's of course fine once the IS_IN macro is there.
@@ -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))))