Add error code to returns

Fix conditional libjxl compilation
This commit is contained in:
xiota
2021-09-23 13:34:48 -07:00
parent dfc82c403c
commit dd01cc110b
9 changed files with 31 additions and 26 deletions

View File

@@ -237,7 +237,7 @@ bool hasJpegExtension(const Glib::ustring& filename)
return extension == "jpg" || extension == "jpeg";
}
#ifdef JXL
#ifdef LIBJXL
bool hasJxlExtension(const Glib::ustring& filename)
{
const Glib::ustring extension = getFileExtension(filename);