]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Add an ifdef allowing to rename Solvable dependency members 477/head
authorLukáš Hrázký <lhrazky@redhat.com>
Fri, 15 Oct 2021 13:51:19 +0000 (15:51 +0200)
committerLukáš Hrázký <lhrazky@redhat.com>
Wed, 3 Nov 2021 14:48:26 +0000 (15:48 +0100)
commit9cf5b7571ea26320cdacd26bb66d0d807bd27c9e
tree409a5f664438cd86eeeaff0248e74d19089224b4
parente79734abf6042a2a683c3d46ec0d7ecdb2b36be6
Add an ifdef allowing to rename Solvable dependency members

In C++20 "requires" is a new keyword, causing a conflict with the
Solvable::requires attribute. From the outside this can only be fixed
with an ugly preprocessor redefinition of the symbol around each libsolv
header include.

This commit adds an #ifdef allowing to rename the dep attributes in case
C++20 or higher is used, which can be easily defined in one place in the
libolv user's build system.
src/solvable.h