xinxinlx / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Modify opj_version function to return also version as int #344

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, opj_version is as follows : 

const char* OPJ_CALLCONV opj_version(void)

This should be changed to 

const char* OPJ_CALLCONV opj_version(&opj_maj,&opj_min,&opj_build)

so as to get also version numbers as int.

Original issue reported on code.google.com by antonin on 6 May 2014 at 2:43

GoogleCodeExporter commented 9 years ago
What shall a "version numbers as int" be good for.

The attached 'CMakeLists.txt' does test to find the version
in 'opj_config.h'. This - very late - is now possible.

The test could be changed to get the version number as an 
integer too.

This CMakeLists.txt is a test for v2.1.0 only.

It tests whether certain functions exists and returns
the result: necessary for applications.

It returns the version string.

winfried

Original comment by szukw...@arcor.de on 8 May 2014 at 8:36

Attachments: