Fix Linux compile due to C include in C++ code.
This commit is contained in:
@@ -17,8 +17,10 @@
|
|||||||
#pragma comment(lib, "libjpeg/jpeg.lib")
|
#pragma comment(lib, "libjpeg/jpeg.lib")
|
||||||
#pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */
|
#pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */
|
||||||
#else
|
#else
|
||||||
|
extern "C" {
|
||||||
#include <jpeglib.h>
|
#include <jpeglib.h>
|
||||||
#include <jerror.h>
|
#include <jerror.h>
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct my_jpeg_error_mgr
|
struct my_jpeg_error_mgr
|
||||||
|
|||||||
Reference in New Issue
Block a user