[02/19] Fix -Wundef warning in SHLIB_COMPAT

Message ID 1408618663-2281-3-git-send-email-siddhesh@redhat.com
State Committed
Headers

Commit Message

Siddhesh Poyarekar Aug. 21, 2014, 10:57 a.m. UTC
  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

Roland McGrath Aug. 22, 2014, 6:23 p.m. UTC | #1
That's of course fine once the IS_IN macro is there.
  

Patch

diff --git a/include/shlib-compat.h b/include/shlib-compat.h
index fac0814..30804d3 100644
--- a/include/shlib-compat.h
+++ b/include/shlib-compat.h
@@ -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))))