File: pi-version.h.in

package info (click to toggle)
pilot-link 0.12.5-dfsg-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 6,868 kB
  • ctags: 5,811
  • sloc: ansic: 53,153; sh: 10,459; java: 2,584; perl: 2,247; python: 1,044; makefile: 991; yacc: 662; cpp: 551; xml: 39
file content (27 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _PILOT_VERSION_H_
#define _PILOT_VERSION_H_
/*
 * pi-version.h: Version numbers and global macros.
 *
 * This file contains #defines for pilot-link's version number,
 * and some macros that may be used anywhere in the codebase.
 *
 * PILOT_LINK_IS(0,12,0) may be used to determine if the
 * pilot-link version is _at least_ 0.12.0 (added in 0.12.0).
 *
 */

#define PILOT_LINK_VERSION @PILOT_LINK_VERS@
#define PILOT_LINK_MAJOR @PILOT_LINK_MAJOR@
#define PILOT_LINK_MINOR @PILOT_LINK_MINOR@

#define PILOT_LINK_PATCH "@PILOT_LINK_PATCH@"

#define PILOT_LINK_IS(a,b,c) \
	((PILOT_LINK_VERSION > a) || \
	((PILOT_LINK_VERSION == a) && \
		((PILOT_LINK_MAJOR > b) || \
		((PILOT_LINK_MAJOR == b) && (PILOT_LINK_MINOR >= c)))))


#endif	/* _PILOT_VERSION_H_ */