Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'LgdImageCreateFromPng' undeclared (when no PNG support) #13

Open
hhrhhr opened this issue Apr 10, 2020 · 0 comments
Open

error: 'LgdImageCreateFromPng' undeclared (when no PNG support) #13

hhrhhr opened this issue Apr 10, 2020 · 0 comments

Comments

@hhrhhr
Copy link

hhrhhr commented Apr 10, 2020

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 },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant