2018-08-09 18:06:22 +02:00
|
|
|
#include <assert.h>
|
2020-02-01 23:06:01 +01:00
|
|
|
// clang-format off
|
2018-08-09 18:06:22 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <jpeglib.h>
|
2020-02-01 23:06:01 +01:00
|
|
|
// clang-format on
|
2018-08-09 18:06:22 +02:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
/* Without any JPEG file to open, test that the call fails as
|
|
|
|
expected. This tests that linking worked. */
|
|
|
|
struct jpeg_decompress_struct cinfo;
|
|
|
|
struct jpeg_error_mgr jerr;
|
|
|
|
cinfo.err = jpeg_std_error(&jerr);
|
|
|
|
jpeg_create_decompress(&cinfo);
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
return (JPEG_LIB_VERSION != CMAKE_EXPECTED_JPEG_VERSION);
|
2018-08-09 18:06:22 +02:00
|
|
|
}
|