diff --git a/main.c b/main.c index ee17c15..83187e7 100644 --- a/main.c +++ b/main.c @@ -33,9 +33,6 @@ # include "bsdstubs.h" #endif -/* we are compatible with 0.26 of pkg-config */ -#define PKGCONFIG_VERSION_EQUIV "0.26" - #define WANT_CFLAGS_ONLY_I (19) #define WANT_CFLAGS_ONLY_OTHER (20) @@ -501,7 +498,7 @@ main(int argc, char *argv[]) if (required_pkgconfig_version != NULL) { - if (pkg_compare_version(PKGCONFIG_VERSION_EQUIV, required_pkgconfig_version) >= 0) + if (pkg_compare_version(PKG_PKGCONFIG_VERSION_EQUIV, required_pkgconfig_version) >= 0) return EXIT_SUCCESS; return EXIT_FAILURE; diff --git a/pkg.h b/pkg.h index 138233a..a517601 100644 --- a/pkg.h +++ b/pkg.h @@ -37,6 +37,9 @@ #define BUFSIZ 65535 #endif +/* we are compatible with 0.26 of pkg-config */ +#define PKG_PKGCONFIG_VERSION_EQUIV "0.26" + typedef enum { PKG_ANY = 0, PKG_LESS_THAN,