]> sourceware.org Git - glibc.git/commitdiff
* include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
authorRoland McGrath <roland@gnu.org>
Mon, 27 Mar 2000 23:57:43 +0000 (23:57 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 27 Mar 2000 23:57:43 +0000 (23:57 +0000)
obsoleting version not being defined at all, in which case the
result is always true.

ChangeLog
include/shlib-compat.h

index 76391807f2bb72c52ecf7bbd784b2d2bfce3b3a6..56543086368e74d66e8fd0b2496eb47dcf35f1dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
 
+       * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
+       obsoleting version not being defined at all, in which case the
+       result is always true.
+
        * Makeconfig (preprocess-versions): New canned sequence for running
        cpp on shlib-versions and the like.
        (soversions.i): Use it.
index 7f66cbead5a1a7d8230ce39d22598cfa03c2b2d9..a95c1e0806acb2a6e05a7d7334075129d219effb 100644 (file)
@@ -44,7 +44,8 @@
    in the GLIBC_2.0 version and obsoleted in the GLIBC_2.2 version.  */
 
 # define SHLIB_COMPAT(lib, introduced, obsoleted) \
-  (ABI_##lib##_##introduced < ABI_##lib##_##obsoleted)
+  (!(ABI_##lib##_##obsoleted - 0) \
+   || ((ABI_##lib##_##introduced - 0) < (ABI_##lib##_##obsoleted - 0)))
 
 /* That header also defines symbols like `VERSION_libm_GLIBC_2_1' to
    the version set name to use for e.g. symbols first introduced into
This page took 0.041039 seconds and 5 git commands to generate.