summaryrefslogtreecommitdiffstats
path: root/pcilib/version.h.in
blob: 0940913d0e4331ba9c0239418dd2019cef49988e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _PCILIB_VERSION_H
#define _PCILIB_VERSION_H

#define PCILIB_VERSION_MAJOR ${PCILIB_VERSION_MAJOR}
#define PCILIB_VERSION_MINOR ${PCILIB_VERSION_MINOR}
#define PCILIB_VERSION_MICRO ${PCILIB_VERSION_MICRO}

#define PCILIB_MAKE_VERSION(major, minor, micro) ((major<<16)|(minor<<8)|(micro))
#define PCILIB_VERSION_GET_MAJOR(version) ((version>>16)&0xFF)
#define PCILIB_VERSION_GET_MINOR(version) ((version>>8)&0xFF)
#define PCILIB_VERSION_GET_MICRO(version) ((version)&0xFF)

#define PCILIB_VERSION PCILIB_MAKE_VERSION(PCILIB_VERSION_MAJOR, PCILIB_VERSION_MINOR, PCILIB_VERSION_MICRO)

#endif /* _PCILIB_VERSION_H */