summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/gd_ss.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/gd/gd_ss.c')
-rw-r--r--Build/source/libs/gd/gd_ss.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/Build/source/libs/gd/gd_ss.c b/Build/source/libs/gd/gd_ss.c
deleted file mode 100644
index 18fc50d2b90..00000000000
--- a/Build/source/libs/gd/gd_ss.c
+++ /dev/null
@@ -1,50 +0,0 @@
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <stdio.h>
-#include <math.h>
-#include <string.h>
-#include <stdlib.h>
-#include "gd.h"
-
-#define TRUE 1
-#define FALSE 0
-
-/* 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
-BGD_DECLARE(void) gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink)
-{
- gdIOCtx *out = gdNewSSCtx (NULL, outSink);
- gdImagePngCtx (im, out);
- out->gd_free (out);
-}
-
-BGD_DECLARE(gdImagePtr) gdImageCreateFromPngSource (gdSourcePtr inSource)
-{
- gdIOCtx *in = gdNewSSCtx (inSource, NULL);
- gdImagePtr im;
-
- im = gdImageCreateFromPngCtx (in);
-
- in->gd_free (in);
-
- return im;
-}
-#else /* no HAVE_LIBPNG */
-BGD_DECLARE(void) gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink)
-{
- fprintf (stderr, "PNG support is not available\n");
-}
-
-BGD_DECLARE(gdImagePtr) gdImageCreateFromPngSource (gdSourcePtr inSource)
-{
- fprintf (stderr, "PNG support is not available\n");
- return NULL;
-}
-#endif /* HAVE_LIBPNG */