27 #ifdef USE_WINDOWS_MESSAGEBOX
32 #define EXIT_FAILURE 1
44 #ifdef NEED_SHORT_EXTERNAL_NAMES
45 #define jpeg_std_message_table jMsgTable
48 #define JMESSAGE(code,string) string ,
73 (*cinfo->err->output_message) (cinfo);
103 (*cinfo->err->format_message) (cinfo,
buffer);
105 #ifdef USE_WINDOWS_MESSAGEBOX
107 MessageBox(GetActiveWindow(),
buffer,
"JPEG Library Error",
108 MB_OK | MB_ICONERROR);
111 fprintf(stderr,
"%s\n",
buffer);
138 (*err->output_message) (cinfo);
144 (*err->output_message) (cinfo);
161 const char * msgtext = NULL;
176 if (msgtext == NULL) {
184 while ((ch = *msgptr++) !=
'\0') {
186 if (*msgptr ==
's') isstring =
TRUE;
214 cinfo->err->num_warnings = 0;
216 cinfo->err->msg_code = 0;
239 err->trace_level = 0;
240 err->num_warnings = 0;
245 err->last_jpeg_message = (
int) JMSG_LASTMSGCODE - 1;
247 err->addon_message_table = NULL;
248 err->first_addon_message = 0;
249 err->last_addon_message = 0;