ports/graphics/jpgtn/files/patch-src_jpgtn.h
Robert Clausecker ed698901d9 graphics/jpgtn: unbreak build
Also remove the archaic pre-everything target from the Makefile,
simplify the Makefile, add SF as another master site and set
LICENSE.  Take over maintainership of this unmaintained port.

PR:	257181
2021-07-14 14:42:20 +02:00

23 lines
1.3 KiB
C

--- src/jpgtn.h.orig 2021-07-14 12:00:47 UTC
+++ src/jpgtn.h
@@ -36,13 +36,13 @@
#define RSZ_WIDTH 1
#define RSZ_HEIGHT 2
-unsigned char *outimage; /* The current thumbnail image */
-unsigned char *palette; /* Global palette pointer */
-int width; /* Original image width */
-int height; /* Original image height */
-int background; /* Index's background color */
-long out_wide; /* Width of thumbnail image */
-long out_high; /* Height of thumbnail image */
+extern unsigned char *outimage; /* The current thumbnail image */
+extern unsigned char *palette; /* Global palette pointer */
+extern int width; /* Original image width */
+extern int height; /* Original image height */
+extern int background; /* Index's background color */
+extern long out_wide; /* Width of thumbnail image */
+extern long out_high; /* Height of thumbnail image */
/* resizepic.c */