"benchmarks/vscode:/vscode.git/clone" did not exist on "a53ecd229b17064a5a4e3e7c87c87d04c2fdbf18"
Commit 36703f69 authored by Davis King's avatar Davis King
Browse files

Improve check that the system version of libjpeg is usable.

parent e30f5e2f
...@@ -31,7 +31,7 @@ if(JPEG_FOUND) ...@@ -31,7 +31,7 @@ if(JPEG_FOUND)
message (STATUS "Found system copy of libjpeg: ${JPEG_LIBRARY}") message (STATUS "Found system copy of libjpeg: ${JPEG_LIBRARY}")
if(NOT test_for_libjpeg_worked) if(NOT test_for_libjpeg_worked)
set(JPEG_FOUND 0) set(JPEG_FOUND 0)
message (STATUS "System copy of libjpeg is broken. Will build our own libjpeg and use that instead.") message (STATUS "System copy of libjpeg is broken or too old. Will build our own libjpeg and use that instead.")
endif() endif()
endif() endif()
......
...@@ -41,6 +41,10 @@ int main() ...@@ -41,6 +41,10 @@ int main()
jpeg_create_decompress(&cinfo); jpeg_create_decompress(&cinfo);
jpeg_stdio_src(&cinfo, fp); jpeg_stdio_src(&cinfo, fp);
if (false) {
unsigned char imgbuffer[1234];
jpeg_mem_src(&cinfo, imgbuffer, sizeof(imgbuffer));
}
jpeg_read_header(&cinfo, TRUE); jpeg_read_header(&cinfo, TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment