123456789101112131415 |
- #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 */
|