Plug-in API Versioning question
Posted: 16 Apr 2018 15:29
Hello!
At me I have the plugin that building and working well on VLC 2.2.2. I want to use modern API for it, but I don't want to break ability to compile it on older versions are still be around of various Linux Distros repositories.
In the vlc_plugin.h I see only one version related macro I can't compare with "greater"/"lesser" except of "equal" or "not-equal".
Can you suggest me a way (better version related macros) to identify legacy and modern stuff than making a silly big chain of "if-else-if-else" or any impossible dirty hacks to do compile-time spliting of version number to just tell that it is "older" or "newer"?
At me I have the plugin that building and working well on VLC 2.2.2. I want to use modern API for it, but I don't want to break ability to compile it on older versions are still be around of various Linux Distros repositories.
In the vlc_plugin.h I see only one version related macro I can't compare with "greater"/"lesser" except of "equal" or "not-equal".
Can you suggest me a way (better version related macros) to identify legacy and modern stuff than making a silly big chain of "if-else-if-else" or any impossible dirty hacks to do compile-time spliting of version number to just tell that it is "older" or "newer"?