version: add 4th digit and helper macros
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Apr 2013 09:44:12 +0000 (11:44 +0200)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:07:29 +0000 (11:07 +0100)
commitc528a3b7d5be8603ac3b016e512190c1092f958c
tree58b239c2250ed8bc14e262d02fd156772620a4e8
parent926fe27039bbef3a72e95a96d1948299a5a781e8
version: add 4th digit and helper macros

Applications can test versions, for compatibility, this way:
#if RTE_VERSION >= RTE_VERSION_NUM(1,2,3,4)

RTE_VERSION was already defined for use with rte_config.
It is moved in rte_version.h and updated to current version number.

Note that the first tag having this helper is 1.2.3r2.
Releases r0 have not this patch.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_eal/common/include/rte_eal.h
lib/librte_eal/common/include/rte_version.h