VirtualBox

Changeset 85702 in vbox for trunk/include


Ignore:
Timestamp:
Aug 11, 2020 6:38:50 PM (4 years ago)
Author:
vboxsync
Message:

IPRT,lnx-kmods: s/VBOX_RHEL_MAJ_PREREQ/RTLNX_RHEL_MAJ_PREREQ/ and added RTLNX_RHEL_PREREQ. Eliminated confusing RHEL_81 & RHEL_82 defines from the-linux-kernel.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/linux/version.h

    r85701 r85702  
    5353
    5454
    55 /** @def VBOX_RHEL_MAJ_PREREQ
     55/** @def RTLNX_RHEL_PREREQ
     56 * Require a minium RedHat release.
     57 * @param a_iMajor      The major release number (RHEL_MAJOR).
     58 * @param a_iMinor      The minor release number (RHEL_MINOR).
     59 * @sa RTLNX_RHEL_MAJ_PREREQ
     60 */
     61#if defined(RHEL_MAJOR) && defined(RHEL_MINOR)
     62# define RTLNX_RHEL_PREREQ(a_iMajor, a_iMinor) \
     63     ((RHEL_MAJOR) > (a_iMajor) || ((RHEL_MAJOR) == (a_iMajor) && (RHEL_MINOR) >= (a_iMinor)))
     64#else
     65# define RTLNX_RHEL_PREREQ(a_iMajor, a_iMinor) (0)
     66#endif
     67
     68/** @def RTLNX_RHEL_MAJ_PREREQ
    5669 * Require a minimum minor release number for the given RedHat release.
    5770 * @param a_iMajor      RHEL_MAJOR must _equal_ this.
    5871 * @param a_iMinor      RHEL_MINOR must be greater or equal to this.
     72 * @sa RTLNX_RHEL_PREREQ
    5973 */
    6074#if defined(RHEL_MAJOR) && defined(RHEL_MINOR)
    61 # define VBOX_RHEL_MAJ_PREREQ(a_iMajor, a_iMinor) ((RHEL_MAJOR) == (a_iMajor) && (RHEL_MINOR) >= (a_iMinor))
     75# define RTLNX_RHEL_MAJ_PREREQ(a_iMajor, a_iMinor) ((RHEL_MAJOR) == (a_iMajor) && (RHEL_MINOR) >= (a_iMinor))
    6276#else
    63 # define VBOX_RHEL_MAJ_PREREQ(a_iMajor, a_iMinor) (0)
     77# define RTLNX_RHEL_MAJ_PREREQ(a_iMajor, a_iMinor) (0)
    6478#endif
    6579
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette