VirtualBox

Changeset 85701 in vbox for trunk/include/iprt/linux


Ignore:
Timestamp:
Aug 11, 2020 5:46:17 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139841
Message:

IPRT,lnx-kmods: Added VBOX_RHEL_MAJ_PREREQ and RTLNX_SUSE_MAJ_PREREQ to version.h. Started using them.

File:
1 edited

Legend:

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

    r85698 r85701  
    5252     && LINUX_VERSION_CODE <  KERNEL_VERSION(a_MajorMax, a_MinorMax, a_PatchMax) )
    5353
     54
     55/** @def VBOX_RHEL_MAJ_PREREQ
     56 * Require a minimum minor release number for the given RedHat release.
     57 * @param a_iMajor      RHEL_MAJOR must _equal_ this.
     58 * @param a_iMinor      RHEL_MINOR must be greater or equal to this.
     59 */
     60#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))
     62#else
     63# define VBOX_RHEL_MAJ_PREREQ(a_iMajor, a_iMinor) (0)
     64#endif
     65
     66/** @def RTLNX_SUSE_MAJ_PREREQ
     67 * Require a minimum minor release number for the given SUSE release.
     68 * @param a_iMajor      CONFIG_SUSE_VERSION must _equal_ this.
     69 * @param a_iMinor      CONFIG_SUSE_PATCHLEVEL must be greater or equal to this.
     70 */
     71#if defined(CONFIG_SUSE_VERSION) && defined(CONFIG_SUSE_PATCHLEVEL)
     72# define RTLNX_SUSE_MAJ_PREREQ(a_iMajor, a_iMinor) ((CONFIG_SUSE_VERSION) == (a_iMajor) && (CONFIG_SUSE_PATCHLEVEL) >= (a_iMinor))
     73#else
     74# define RTLNX_SUSE_MAJ_PREREQ(a_iMajor, a_iMinor) (0)
     75#endif
     76
     77
    5478#endif /* !IPRT_INCLUDED_linux_version_h */
    5579
Note: See TracChangeset for help on using the changeset viewer.

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