Skip to content

Commit

Permalink
svg: fix compiling with svg disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAdam committed Oct 1, 2024
1 parent f18b452 commit 70e0818
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libs/PictureImageLoader.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ typedef struct PImageLoader

/* ---------------------------- forward declarations ----------------------- */

#ifdef USE_SVG
static Bool PImageLoadSvg(FIMAGE_CMD_ARGS);
#else
#define PImageLoadSvg(a,b,c,d,e) (0)
#endif
static Bool PImageLoadPng(FIMAGE_CMD_ARGS);
static Bool PImageLoadXpm(FIMAGE_CMD_ARGS);

Expand Down Expand Up @@ -141,7 +137,7 @@ Bool PImageLoadArgbDataFromFile(FIMAGE_CMD_ARGS)
* svg loader
*
*/
#ifdef USE_SVG
#if USE_SVG
static
Bool PImageLoadSvg(FIMAGE_CMD_ARGS)
{
Expand Down Expand Up @@ -414,6 +410,12 @@ Bool PImageLoadSvg(FIMAGE_CMD_ARGS)

return True;
}
#else
static Bool
PImageLoadSvg(FIMAGE_CMD_ARGS)
{
return (True);
}
#endif

/*
Expand Down

0 comments on commit 70e0818

Please sign in to comment.