mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
fix: linker errors when jpeg and png are not supported
This commit is contained in:
@@ -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 }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user