main: move PKGCONFIG_VERSION_EQUIV to pkg.h

pull/15/head
William Pitcock 2012-05-05 21:51:25 -05:00
parent 2ba296dc96
commit 58b525d2f8
2 changed files with 4 additions and 4 deletions

5
main.c
View File

@ -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;

3
pkg.h
View File

@ -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,