]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/libpkgver/pkgver.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / libpkgver / pkgver.h
1 /*
2  * 
3  *   Copyright 2015 Harlan Stenn.  Used by NTP with permission.
4  *
5  *   Author: Harlan Stenn <harlan@pfcs.com>
6  *
7  *   Copying and distribution of this file, with or without modification, are
8  *   permitted in any medium without royalty provided the copyright notice
9  *   and this notice are preserved. This file is offered as-is, without any
10  *   warranty.
11  */
12
13 extern int colcomp(char *s1, char *s2);
14
15 #define PKG_VER_LT(x)   (colcomp((x), PACKAGE_VERSION) < 0)
16 #define PKG_VER_LE(x)   (colcomp((x), PACKAGE_VERSION) <= 0)
17 #define PKG_VER_EQ(x)   (colcomp((x), PACKAGE_VERSION) == 0)
18 #define PKG_VER_GE(x)   (colcomp((x), PACKAGE_VERSION) >= 0)
19 #define PKG_VER_GT(x)   (colcomp((x), PACKAGE_VERSION) > 0)