root/gd/libgd/gd_compat.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. gdJpegGetVersionInt
  2. gdJpegGetVersionString
  3. gdPngGetVersionString

#include "php_config.h" 
#ifdef HAVE_GD_PNG
/* needs to be first */
# include <png.h>
#endif

#ifdef HAVE_GD_JPG
# include <jpeglib.h>
#endif

#ifdef HAVE_GD_JPG
int gdJpegGetVersionInt()
{
        return JPEG_LIB_VERSION;
}

const char * gdJpegGetVersionString()
{
        switch(JPEG_LIB_VERSION) {
                case 62:
                        return "6b";
                        break;
                default:
                        return "unknown";
        }
}
#endif

#ifdef HAVE_GD_PNG
const char * gdPngGetVersionString()
{
        return PNG_LIBPNG_VER_STRING;
}
#endif


/* [<][>][^][v][top][bottom][index][help] */