[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: luagd small compile bug
- From: eugeny gladkih <john@...>
- Date: Tue, 22 Jan 2008 14:30:43 +0300
Hi,
undeclared function fix if there is no PNG support in libgd
--- luagd.c.~1.1.~ 2008-01-21 21:41:40.000000000 +0300
+++ luagd.c 2008-01-22 14:27:32.000000000 +0300
@@ -26,7 +26,7 @@
*
*/
-static char *rev = "$Id: luagd.c,v 1.1 2008/01/21 18:41:40 john Exp $";
+static char *rev = "$Id: luagd.c,v 1.2 2008/01/22 11:27:32 john Exp $";
#include <lua.h>
#include <lauxlib.h>
@@ -2162,8 +2162,10 @@
{ "createFromGif", LgdImageCreateFromGif },
{ "createFromGifStr", LgdImageCreateFromGifPtr },
#endif
+#ifdef GD_PNG
{ "createFromPng", LgdImageCreateFromPng },
{ "createFromPngStr", LgdImageCreateFromPngPtr },
+#endif
{ "createFromGd", LgdImageCreateFromGd },
{ "createFromGdStr", LgdImageCreateFromGdPtr },
{ "createFromGd2", LgdImageCreateFromGd2 },
--
Yours sincerely, Eugeny.
Doctor Web, Ltd. http://www.drweb.com
+79119997425