You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include <assert.h>
|
|
|
|
// clang-format off
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <jpeglib.h>
|
|
|
|
// clang-format on
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
/* 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);
|
|
|
|
|
|
|
|
return (JPEG_LIB_VERSION != CMAKE_EXPECTED_JPEG_VERSION);
|
|
|
|
}
|