X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcheck-version.c;h=4df90a4843f4d12b31c7c6f2737763bc8a27628a;hb=718b0598a7e9f5e9bdf3efc7e91e69a78e465327;hp=b54f2e55de0c8a0b3c6c60e22813184062670c59;hpb=e5e3c71d407361f126e61ded83ca7d9d61ff0bca;p=gnulib.git diff --git a/lib/check-version.c b/lib/check-version.c index b54f2e55d..4df90a484 100644 --- a/lib/check-version.c +++ b/lib/check-version.c @@ -20,15 +20,15 @@ gcry_check_version from Werner Koch's Libgcrypt. Paul Eggert suggested the use of strverscmp to simplify implementation. */ -#if HAVE_CONFIG_H -# include "config.h" +#ifdef HAVE_CONFIG_H +# include #endif #include #include /* Get specification. */ -#include "check_version.h" +#include "check-version.h" /* Check that the the version of the library (i.e., the CPP symbol * VERSION) is at minimum the requested one in REQ_VERSION (typically @@ -40,7 +40,7 @@ const char * check_version (const char *req_version) { - if (!req_version || strverscmp (req_version, VERSION) < 0) + if (!req_version || strverscmp (req_version, VERSION) <= 0) return VERSION; return NULL;