Version-checking macros and functions¶
Starting with version 1.0.0 libuv follows the semantic versioning scheme. This means that new APIs can be introduced throughout the lifetime of a major release. In this section you’ll find all macros and functions that will allow you to write or compile code conditionally, in order to work with multiple libuv versions.
libuv version’s major number.
libuv version’s minor number.
libuv version’s patch number.
Set to 1 to indicate a release version of libuv, 0 for a development snapshot.
libuv version suffix. Certain development releases such as Release Candidates might have a suffix such as “rc”.
Returns the libuv version packed into a single integer. 8 bits are used for each component, with the patch number stored in the 8 least significant bits. E.g. for libuv 1.2.3 this would be 0x010203.
New in version 1.7.0.