summaryrefslogtreecommitdiff
path: root/trunk/cjpeg.c
diff options
context:
space:
mode:
authordcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-10-10 06:54:21 +0000
committerdcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-10-10 06:54:21 +0000
commitb725238afa332f688ae27aa9c597a346958dcd71 (patch)
tree587c1156697911191d88e0b3b7f6ab8f7635db94 /trunk/cjpeg.c
parent71debc4426122ffeeb105a75143253eb583f055b (diff)
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
Diffstat (limited to 'trunk/cjpeg.c')
-rw-r--r--trunk/cjpeg.c7
1 files changed, 6 insertions, 1 deletions
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;
}