Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a header with the version of xkbcommon #400

Closed
wants to merge 1 commit into from

Commits on Nov 5, 2023

  1. Add a header with the version of xkbcommon

    Currently there is no easy way to universally check the version of
    xkbcommon.
    
    Make clear we use the semantic version schema MAJOR.MINOR.PATCH and
    add an auto-generated header `version.h` that provide the following macros:
    - `XKBCOMMON_VERSION_MAJOR`: `MAJOR` version component
    - `XKBCOMMON_VERSION_MINOR`: `MINOR` version component
    - `XKBCOMMON_VERSION_PATCH`: `PATCH` version component
    - `XKBCOMMON_VERSION(a, b, c)`: create a version number from its components
    - `XKBCOMMON_VERSION_NUMBER`: version as a number, e.g. 1.6.0 is transformed
      into `0x010600`. Intended use example:
      `#if XKBCOMMON_VERSION_NUMBER >= XKBCOMMON_VERSION(1,7,0)`
    - `XKBCOMMON_VERSION_STR`: version as a string
    wismill committed Nov 5, 2023
    Configuration menu
    Copy the full SHA
    21313d0 View commit details
    Browse the repository at this point in the history