From 5dfd33c90ce637db67a707640246269d8893c24e Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Tue, 6 Nov 2012 09:44:36 +0100 Subject: [PATCH] PhotoRec: return libjpeg-turbo version --- src/file_jpg.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/file_jpg.c b/src/file_jpg.c index e47f8074..55ceb09d 100644 --- a/src/file_jpg.c +++ b/src/file_jpg.c @@ -1505,7 +1505,13 @@ int data_check_jpg(const unsigned char *buffer, const unsigned int buffer_size, const char*td_jpeg_version(void) { #if defined(HAVE_LIBJPEG) -#if defined(JPEG_LIB_VERSION) +#ifdef LIBJPEG_TURBO_VERSION +#define td_xstr(s) td_str(s) +#define td_str(s) #s + static char buffer[32]; + sprintf(buffer,"libjpeg-turbo-%s", "" td_xstr(LIBJPEG_TURBO_VERSION)); + return buffer; +#elif defined(JPEG_LIB_VERSION) static char buffer[32]; sprintf(buffer,"%d", JPEG_LIB_VERSION); return buffer;