lua-gd
lua-gd copied to clipboard
error: 'LgdImageCreateFromPng' undeclared (when no PNG support)
Compile fail when library builded without PNG support. Small patch fix this:
@@ -2168,8 +2168,10 @@ static const luaL_Reg LgdFunctions[] =
{ "createFromGif", LgdImageCreateFromGif },
{ "createFromGifStr", LgdImageCreateFromGifPtr },
#endif
+ #ifdef GD_PNG
{ "createFromPng", LgdImageCreateFromPng },
{ "createFromPngStr", LgdImageCreateFromPngPtr },
+ #endif
{ "createFromGd", LgdImageCreateFromGd },
{ "createFromGdStr", LgdImageCreateFromGdPtr },