fix: linker errors when jpeg and png are not supported
@@ -45,9 +45,13 @@ typedef struct LCUI_ImageInterfaceRec_ {
} LCUI_ImageInterfaceRec, *LCUI_ImageInterface;
static const LCUI_ImageInterfaceRec interfaces[] = {
+#ifdef USE_LIBPNG
{ ".png", LCUI_InitPNGReader, LCUI_ReadPNGHeader, LCUI_ReadPNG },
+#endif
+#ifdef USE_LIBJPEG
{ ".jpeg .jpg", LCUI_InitJPEGReader, LCUI_ReadJPEGHeader,
LCUI_ReadJPEG },
+#endif
{ ".bmp", LCUI_InitBMPReader, LCUI_ReadBMPHeader, LCUI_ReadBMP }
};
