Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OPJ_VERSION_MAJOR, OPJ_VERSION_MINOR, OPJ_VERSION_MICRO macros in openjpeg.h #1011

Closed
rouault opened this issue Sep 4, 2017 · 1 comment
Labels

Comments

@rouault
Copy link
Collaborator

rouault commented Sep 4, 2017

Currently for code using openjpeg.h, it is not possible to kow, at compile time, which version of openjpeg is used. Such information can be useful in case of API changes (or behaviour changes that doesn't reflect in the API) to have a code base working against several versions.
Macros (#define) that would hold this information would be useful to do things like

#if OPJ_VERSION_MAJOR > 2 || (OPJ_VERSION_MAJOR == 2 && OPJ_VERSION_MINOR >= 2)
....
#endif
@rouault
Copy link
Collaborator Author

rouault commented Sep 19, 2017

Actually this is not indeed. A opj_config.h file exists with that information and is already installed in include/

@rouault rouault closed this as completed Sep 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant