1284990Scy/* 2284990Scy * 3284990Scy * Copyright 2015 Harlan Stenn. Used by NTP with permission. 4284990Scy * 5284990Scy * Author: Harlan Stenn <harlan@pfcs.com> 6284990Scy * 7284990Scy * Copying and distribution of this file, with or without modification, are 8284990Scy * permitted in any medium without royalty provided the copyright notice 9284990Scy * and this notice are preserved. This file is offered as-is, without any 10284990Scy * warranty. 11284990Scy */ 12284990Scy 13284990Scyextern int colcomp(char *s1, char *s2); 14284990Scy 15284990Scy#define PKG_VER_LT(x) (colcomp((x), PACKAGE_VERSION) < 0) 16284990Scy#define PKG_VER_LE(x) (colcomp((x), PACKAGE_VERSION) <= 0) 17284990Scy#define PKG_VER_EQ(x) (colcomp((x), PACKAGE_VERSION) == 0) 18284990Scy#define PKG_VER_GE(x) (colcomp((x), PACKAGE_VERSION) >= 0) 19284990Scy#define PKG_VER_GT(x) (colcomp((x), PACKAGE_VERSION) > 0) 20