From 286663c34b006c1409df4a71f89d6d4d5d01df09 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Wed, 19 Nov 2014 12:15:01 +0530 Subject: [PATCH] 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. --- ChangeLog | 2 ++ include/shlib-compat.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 038b134f89..d2460f86cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2014-11-19 Siddhesh Poyarekar + * 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). diff --git a/include/shlib-compat.h b/include/shlib-compat.h index fac0814bc2..30804d369c 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)))) -- 2.11.4.GIT