Workaround to allow building on msys2 with libjpeg-turbo, #4713

This commit is contained in:
Ingo Weyrich
2020-10-14 09:10:58 +02:00
parent a30dca0b0e
commit be67261d0b

View File

@@ -248,12 +248,18 @@ my_error_exit (j_common_ptr cinfo)
}
//const char * const jpeg_std_message_table[] = {
//#include "jerror.h"
// NULL
//};
extern const char * const jpeg_std_message_table[];
#ifdef WIN32
#define JVERSION "6b 27-Mar-1998"
#define JCOPYRIGHT_SHORT "(C) 1998, Thomas G. Lane"
#define JMESSAGE(code,string) string ,
const char * const jpeg_std_message_table[] = {
#include "jerror.h"
NULL
};
#else
extern const char * const jpeg_std_message_table[];
#endif
/*
* Actual output of an error or trace message.