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:
DRC
2011-12-18 16:29:35 +00:00
parent 80803ae5fe
commit ab64b62c6b
4 changed files with 9 additions and 0 deletions

View File

@@ -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
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)
==================

View File

@@ -140,6 +140,8 @@ AC_MSG_RESULT([$SO_MAJOR_VERSION:$SO_MINOR_VERSION])
AC_SUBST(SO_MAJOR_VERSION)
AC_SUBST(SO_MINOR_VERSION)
AC_DEFINE_UNQUOTED(LIBJPEG_TURBO_VERSION, [$VERSION], [libjpeg-turbo version])
VERSION_SCRIPT=yes
AC_ARG_ENABLE([ld-version-script],
AS_HELP_STRING([--disable-ld-version-script],

View File

@@ -3,6 +3,9 @@
*/
#define JPEG_LIB_VERSION 62 /* Version 6b */
/* libjpeg-turbo version */
#define LIBJPEG_TURBO_VERSION 0
/* Support arithmetic encoding */
#undef C_ARITH_CODING_SUPPORTED

View File

@@ -2,6 +2,7 @@
/* see jconfig.txt for explanations */
#define JPEG_LIB_VERSION @JPEG_LIB_VERSION@
#define LIBJPEG_TURBO_VERSION @VERSION@
#cmakedefine C_ARITH_CODING_SUPPORTED
#cmakedefine D_ARITH_CODING_SUPPORTED