aboutsummaryrefslogtreecommitdiff
path: root/tests/distck.c
blob: d6cebdb3977043efc8be703fe9e7b8b0a8051431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#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.