aboutsummaryrefslogtreecommitdiff
path: root/tests/distck.c
blob: ee066f5983c12c8fe8f9f22c7671516b7366fe65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <config.h>
#include "grecs.h"

int
main(int argc, char **argv)
{
	int res;
	struct grecs_version_info *packver, *libver;

	packver = grecs_version_split(PACKAGE_STRING);
	libver  = grecs_version();
	if (!(grecs_version_info_cmp(packver, libver, &res) == 0 &&
	      res == 0)) {
		    fprintf(stderr, "grecs.h does not match package number\n");
		    return 1;
	}
	return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.