Unverified Commit 480eec29 authored by cdzhan's avatar cdzhan Committed by GitHub
Browse files

Fix compilation error when there is no libjpeg (#8342)


Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
parent d868be90
...@@ -196,10 +196,6 @@ inline int fetch_jpeg_exif_orientation(j_decompress_ptr cinfo) { ...@@ -196,10 +196,6 @@ inline int fetch_jpeg_exif_orientation(j_decompress_ptr cinfo) {
return fetch_exif_orientation(exif_data_ptr, size); return fetch_exif_orientation(exif_data_ptr, size);
} }
#else // #if JPEG_FOUND
inline int fetch_jpeg_exif_orientation(j_decompress_ptr cinfo) {
return -1;
}
#endif // #if JPEG_FOUND #endif // #if JPEG_FOUND
#if PNG_FOUND && defined(PNG_eXIf_SUPPORTED) #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
...@@ -216,10 +212,6 @@ inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) { ...@@ -216,10 +212,6 @@ inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
return fetch_exif_orientation(exif, num_exif); return fetch_exif_orientation(exif, num_exif);
} }
} }
#else // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
return -1;
}
#endif // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED) #endif // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
constexpr uint16_t IMAGE_ORIENTATION_TL = 1; // normal orientation constexpr uint16_t IMAGE_ORIENTATION_TL = 1; // normal orientation
......
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