summaryrefslogtreecommitdiff
path: root/jpeg/jpeg-8c.patch
blob: 77c1ff592c7ab4ddacd19617c8560317558330da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
--- misc/jpeg-8c/jconfig.h	2011-03-30 11:20:06.266329889 +0200
+++ misc/build/jpeg-8c/jconfig.h	2011-03-30 11:02:01.926080079 +0200
@@ -1 +1,60 @@
-dummy
+/* jconfig.h.  Generated from jconfig.cfg by configure.  */
+/* jconfig.cfg --- source file edited by configure script */
+/* see jconfig.txt for explanations */
+
+#define HAVE_PROTOTYPES 1
+#define HAVE_UNSIGNED_CHAR 1
+#define HAVE_UNSIGNED_SHORT 1
+/* #undef void */
+/* #undef const */
+/* #undef CHAR_IS_UNSIGNED */
+#define HAVE_STDDEF_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_LOCALE_H 1
+/* #undef NEED_BSD_STRINGS */
+/* #undef NEED_SYS_TYPES_H */
+/* #undef NEED_FAR_POINTERS */
+/* #undef NEED_SHORT_EXTERNAL_NAMES */
+/* Define this if you get warnings about undefined structures. */
+/* #undef INCOMPLETE_TYPES_BROKEN */
+
+/* Define "boolean" as unsigned char, not int, on Windows systems. */
+#ifdef WNT 
+#ifndef __RPCNDR_H__		/* don't conflict if rpcndr.h already read */
+typedef unsigned char boolean;
+#endif
+#define HAVE_BOOLEAN		/* prevent jmorecfg.h from redefining it */
+#endif
+
+#ifdef JPEG_INTERNALS
+
+/* #undef RIGHT_SHIFT_IS_UNSIGNED */
+#ifdef WNT
+#define INLINE __inline
+#elif defined SOLARIS
+#define INLINE 
+#else
+#define INLINE inline
+#endif
+/* These are for configuring the JPEG memory manager. */
+/* #undef DEFAULT_MAX_MEM */
+/* #undef NO_MKTEMP */
+
+#endif	/* JPEG_INTERNALS */
+
+#ifdef JPEG_CJPEG_DJPEG
+
+#undef BMP_SUPPORTED		/* BMP image file format */
+#undef GIF_SUPPORTED		/* GIF image file format */
+#undef PPM_SUPPORTED		/* PBMPLUS PPM/PGM image file format */
+/* #undef RLE_SUPPORTED 	*/
+#undef TARGA_SUPPORTED	/* Targa image file format */
+
+/* #undef TWO_FILE_COMMANDLINE */
+/* #undef NEED_SIGNAL_CATCHER 	*/
+/* #undef DONT_USE_B_MODE 		*/
+
+/* Define this if you want percent-done progress reports from cjpeg/djpeg. */
+/* #undef PROGRESS_REPORT 		*/
+
+#endif /* JPEG_CJPEG_DJPEG 	*/
--- misc/jpeg-8c/jmorecfg.h	2009-11-20 09:01:24.000000000 +0100
+++ misc/build/jpeg-8c/jmorecfg.h	2011-03-24 21:29:02.073761750 +0100
@@ -21,7 +21,7 @@
  * We do not support run-time selection of data precision, sorry.
  */
 
-#define BITS_IN_JSAMPLE  8	/* use 8 or 12 */
+#define BITS_IN_JSAMPLE  8	/* use 8                                                                                                                                                                                                                             or 12 */
 
 
 /*
@@ -158,7 +158,8 @@
 
 /* INT32 must hold at least signed 32-bit values. */
 
-#ifndef XMD_H			/* X11/xmd.h correctly defines INT32 */
+#ifndef XMD_H           /* X11/xmd.h correctly defines INT32 */
+#ifndef _SOLAR_H
 #ifndef _BASETSD_H_		/* Microsoft defines it in basetsd.h */
 #ifndef _BASETSD_H		/* MinGW is slightly different */
 #ifndef QGLOBAL_H		/* Qt defines it in qglobal.h */
@@ -166,6 +167,7 @@
 #endif
 #endif
 #endif
+#endif
 #endif
 
 /* Datatype used for image dimensions.  The JPEG standard only supports
--- misc/jpeg-8c/makefile.mk	2011-03-24 21:20:52.540761397 +0100
+++ misc/build/jpeg-8c/makefile.mk	2011-03-24 21:15:20.712761156 +0100
@@ -1 +1,77 @@
-dummy
+#*************************************************************************
+#
+#   Copyright according the GNU Public License.
+#
+#*************************************************************************
+
+PRJ=..$/..$/..$/..
+
+PRJNAME=jpeg
+TARGET=jpeglib
+LIBTARGET=NO
+EXTERNAL_WARNINGS_NOT_ERRORS=TRUE
+VISIBILITY_HIDDEN=TRUE
+
+# --- Settings -----------------------------------------------------------
+
+.INCLUDE :  settings.mk
+
+.IF "$(GUI)$(CPU)"=="WNTP"
+CFLAGS=$(CFLAGS) -Od
+.ENDIF
+
+# --- Files --------------------------------------------------------
+
+SLOFILES=	$(SLO)$/jaricom.obj		\
+			$(SLO)$/jcapimin.obj	\
+			$(SLO)$/jcapistd.obj	\
+			$(SLO)$/jcarith.obj		\
+			$(SLO)$/jccoefct.obj	\
+			$(SLO)$/jccolor.obj		\
+			$(SLO)$/jcdctmgr.obj	\
+			$(SLO)$/jchuff.obj		\
+			$(SLO)$/jcinit.obj		\
+			$(SLO)$/jcmainct.obj	\
+			$(SLO)$/jcmarker.obj	\
+			$(SLO)$/jcmaster.obj	\
+			$(SLO)$/jcomapi.obj		\
+			$(SLO)$/jcparam.obj		\
+			$(SLO)$/jcprepct.obj	\
+			$(SLO)$/jcsample.obj	\
+			$(SLO)$/jctrans.obj		\
+			$(SLO)$/jdapimin.obj	\
+			$(SLO)$/jdapistd.obj	\
+			$(SLO)$/jdarith.obj		\
+			$(SLO)$/jdatadst.obj	\
+			$(SLO)$/jdatasrc.obj	\
+			$(SLO)$/jdcoefct.obj	\
+			$(SLO)$/jdcolor.obj		\
+			$(SLO)$/jddctmgr.obj	\
+			$(SLO)$/jdhuff.obj		\
+			$(SLO)$/jdinput.obj		\
+			$(SLO)$/jdmainct.obj	\
+			$(SLO)$/jdmarker.obj	\
+			$(SLO)$/jdmaster.obj	\
+			$(SLO)$/jdmerge.obj		\
+			$(SLO)$/jdpostct.obj	\
+			$(SLO)$/jdsample.obj	\
+			$(SLO)$/jdtrans.obj		\
+			$(SLO)$/jerror.obj		\
+			$(SLO)$/jfdctflt.obj	\
+			$(SLO)$/jfdctfst.obj	\
+			$(SLO)$/jfdctint.obj	\
+			$(SLO)$/jidctflt.obj	\
+			$(SLO)$/jidctfst.obj	\
+			$(SLO)$/jidctint.obj	\
+			$(SLO)$/jquant1.obj		\
+			$(SLO)$/jquant2.obj		\
+			$(SLO)$/jutils.obj		\
+			$(SLO)$/jmemmgr.obj		\
+			$(SLO)$/jmemnobs.obj	\
+			$(SLO)$/jutils.obj		
+
+LIB1TARGET=$(SLB)$/$(TARGET).lib
+LIB1ARCHIV=$(LB)$/lib$(TARGET).a
+LIB1OBJFILES=$(SLOFILES)
+
+.INCLUDE :  target.mk