Add LIBJPEG_TURBO_VERSION macro for checking the libjpeg-turbo version at compile time
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@731 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -11,6 +11,9 @@ This was more of an annoyance than an actual bug, since it did not cause any
|
|||||||
actual run-time problems, but the issue showed up when running libjpeg-turbo in
|
actual run-time problems, but the issue showed up when running libjpeg-turbo in
|
||||||
valgrind. See http://crbug.com/72399 for more information.
|
valgrind. See http://crbug.com/72399 for more information.
|
||||||
|
|
||||||
|
[3] Added a compile-time macro (LIBJPEG_TURBO_VERSION) that can be used to
|
||||||
|
check the version of libjpeg-turbo against which an application was compiled.
|
||||||
|
|
||||||
|
|
||||||
1.1.90 (1.2 beta1)
|
1.1.90 (1.2 beta1)
|
||||||
==================
|
==================
|
||||||
|
|||||||
@@ -140,6 +140,8 @@ AC_MSG_RESULT([$SO_MAJOR_VERSION:$SO_MINOR_VERSION])
|
|||||||
AC_SUBST(SO_MAJOR_VERSION)
|
AC_SUBST(SO_MAJOR_VERSION)
|
||||||
AC_SUBST(SO_MINOR_VERSION)
|
AC_SUBST(SO_MINOR_VERSION)
|
||||||
|
|
||||||
|
AC_DEFINE_UNQUOTED(LIBJPEG_TURBO_VERSION, [$VERSION], [libjpeg-turbo version])
|
||||||
|
|
||||||
VERSION_SCRIPT=yes
|
VERSION_SCRIPT=yes
|
||||||
AC_ARG_ENABLE([ld-version-script],
|
AC_ARG_ENABLE([ld-version-script],
|
||||||
AS_HELP_STRING([--disable-ld-version-script],
|
AS_HELP_STRING([--disable-ld-version-script],
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
*/
|
*/
|
||||||
#define JPEG_LIB_VERSION 62 /* Version 6b */
|
#define JPEG_LIB_VERSION 62 /* Version 6b */
|
||||||
|
|
||||||
|
/* libjpeg-turbo version */
|
||||||
|
#define LIBJPEG_TURBO_VERSION 0
|
||||||
|
|
||||||
/* Support arithmetic encoding */
|
/* Support arithmetic encoding */
|
||||||
#undef C_ARITH_CODING_SUPPORTED
|
#undef C_ARITH_CODING_SUPPORTED
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
/* see jconfig.txt for explanations */
|
/* see jconfig.txt for explanations */
|
||||||
|
|
||||||
#define JPEG_LIB_VERSION @JPEG_LIB_VERSION@
|
#define JPEG_LIB_VERSION @JPEG_LIB_VERSION@
|
||||||
|
#define LIBJPEG_TURBO_VERSION @VERSION@
|
||||||
#cmakedefine C_ARITH_CODING_SUPPORTED
|
#cmakedefine C_ARITH_CODING_SUPPORTED
|
||||||
#cmakedefine D_ARITH_CODING_SUPPORTED
|
#cmakedefine D_ARITH_CODING_SUPPORTED
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user