From: Siddhesh Poyarekar Date: Wed, 19 Nov 2014 06:45:01 +0000 (+0530) Subject: Fix -Wundef warning in SHLIB_COMPAT X-Git-Tag: glibc-2.21~380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=286663c34b006c1409df4a71f89d6d4d5d01df09;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index 038b134f89b..d2460f86cf1 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 fac0814bc22..30804d369c7 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))))