From b725238afa332f688ae27aa9c597a346958dcd71 Mon Sep 17 00:00:00 2001 From: dcommander Date: Sun, 10 Oct 2010 06:54:21 +0000 Subject: Display libjpeg-turbo version/copyrights in run-time programs git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@247 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- trunk/cjpeg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'trunk/cjpeg.c') diff --git a/trunk/cjpeg.c b/trunk/cjpeg.c index f2a929f..648abf2 100644 --- a/trunk/cjpeg.c +++ b/trunk/cjpeg.c @@ -2,6 +2,7 @@ * cjpeg.c * * Copyright (C) 1991-1998, Thomas G. Lane. + * Copyright (C) 2010, D. R. Commander. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -25,6 +26,7 @@ #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */ #include "jversion.h" /* for version message */ +#include "config.h" #ifdef USE_CCOMMAND /* command-line reader for Macintosh */ #ifdef __MWERKS__ @@ -277,7 +279,10 @@ parse_switches (j_compress_ptr cinfo, int argc, char **argv, static boolean printed_version = FALSE; if (! printed_version) { - fprintf(stderr, "Independent JPEG Group's CJPEG, version %s\n%s\n", + fprintf(stderr, "%s version %s (build %s)\n", + PACKAGE_NAME, VERSION, BUILD); + fprintf(stderr, "%s\n\n", LJTCOPYRIGHT); + fprintf(stderr, "Based on Independent JPEG Group's libjpeg, version %s\n%s\n\n", JVERSION, JCOPYRIGHT); printed_version = TRUE; } -- cgit v1.2.3