Commits

Anonymous committed b7edc05

- sync to 2.0.24

Comments (0)

Files changed (1)

 #define TRUE 1
 #define FALSE 0
 
-/* Exported functions: */
-extern void gdImagePngToSink (gdImagePtr im, gdSinkPtr out);
-extern gdImagePtr gdImageCreateFromPngSource (gdSourcePtr inSource);
-
 /* Use this for commenting out debug-print statements. */
 /* Just use the first '#define' to allow all the prints... */
 /*#define GD_SS_DBG(s) (s) */
 #define GD_SS_DBG(s)
 
 #ifdef HAVE_LIBPNG
-void
-gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink)
+BGD_DECLARE(void) gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink)
 {
   gdIOCtx *out = gdNewSSCtx (NULL, outSink);
   gdImagePngCtx (im, out);
   out->gd_free (out);
 }
 
-gdImagePtr
-gdImageCreateFromPngSource (gdSourcePtr inSource)
+BGD_DECLARE(gdImagePtr) gdImageCreateFromPngSource (gdSourcePtr inSource)
 {
   gdIOCtx *in = gdNewSSCtx (inSource, NULL);
   gdImagePtr im;
   return im;
 }
 #else /* no HAVE_LIBPNG */
-void
-gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink)
+BGD_DECLARE(void) gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink)
 {
   fprintf (stderr, "PNG support is not available\n");
 }
 
-gdImagePtr
-gdImageCreateFromPngSource (gdSourcePtr inSource)
+BGD_DECLARE(gdImagePtr) gdImageCreateFromPngSource (gdSourcePtr inSource)
 {
   fprintf (stderr, "PNG support is not available\n");
   return NULL;