/usr/include/msgpack/predef/version_number.h is in libmsgpack-dev 2.1.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | /*
Copyright Rene Rivera 2005, 2008-2013
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef MSGPACK_PREDEF_VERSION_NUMBER_H
#define MSGPACK_PREDEF_VERSION_NUMBER_H
/*`
[heading `MSGPACK_VERSION_NUMBER`]
``
MSGPACK_VERSION_NUMBER(major,minor,patch)
``
Defines standard version numbers, with these properties:
* Decimal base whole numbers in the range \[0,1000000000).
The number range is designed to allow for a (2,2,5) triplet.
Which fits within a 32 bit value.
* The `major` number can be in the \[0,99\] range.
* The `minor` number can be in the \[0,99\] range.
* The `patch` number can be in the \[0,99999\] range.
* Values can be specified in any base. As the defined value
is an constant expression.
* Value can be directly used in both preprocessor and compiler
expressions for comparison to other similarly defined values.
* The implementation enforces the individual ranges for the
major, minor, and patch numbers. And values over the ranges
are truncated (modulo).
*/
#define MSGPACK_VERSION_NUMBER(major,minor,patch) \
( (((major)%100)*10000000) + (((minor)%100)*100000) + ((patch)%100000) )
#define MSGPACK_VERSION_NUMBER_MAX \
MSGPACK_VERSION_NUMBER(99,99,99999)
#define MSGPACK_VERSION_NUMBER_ZERO \
MSGPACK_VERSION_NUMBER(0,0,0)
#define MSGPACK_VERSION_NUMBER_MIN \
MSGPACK_VERSION_NUMBER(0,0,1)
#define MSGPACK_VERSION_NUMBER_AVAILABLE \
MSGPACK_VERSION_NUMBER_MIN
#define MSGPACK_VERSION_NUMBER_NOT_AVAILABLE \
MSGPACK_VERSION_NUMBER_ZERO
#endif
|