Typo.
[gnulib.git] / lib / check-version.c
index 2e3659c..4df90a4 100644 (file)
@@ -20,8 +20,8 @@
    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 <config.h>
 #endif
 
 #include <stddef.h>
@@ -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;