Re: [Rpm-maint] [rpm-software-management/rpm] check for rpmlib version (Issue #2840)

2024-01-12 Thread Panu Matilainen
@pmatilai converted this issue into discussion #2841. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2840#event-11466189810 You are receiving this because you are subscribed to this thread. Message ID:

[Rpm-maint] [rpm-software-management/rpm] check for rpmlib version (Issue #2840)

2024-01-11 Thread Oliver Kurth
Is there a way to check at compile time for the rpmlib version? In this particular case I want to use the enum value `RPMTRANS_FLAG_NODB` of `enum rpmtransFlags_e` in `include/rpm/rpmts.h`, but stay compatible with older versions that do not have this implemented. Since it's an enum, I cannot