check for rpmlib version #2841
-
Is there a way to check at compile time for the rpmlib version? In this particular case I want to use the enum value |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can test for symbol existence without it being a macro too, details depend on the buildsystem of your project. |
Beta Was this translation helpful? Give feedback.
-
Thanks for replying. I have this code:
so for FWIW, the project uses |
Beta Was this translation helpful? Give feedback.
You can test for symbol existence without it being a macro too, details depend on the buildsystem of your project.
The rpm (not library) version is exposed via RPMVERSION (and rpmEVR) variable when you include rpm/rpmlib.h, but version based checks are best avoided.