Back to index

php5  5.3.10
gd_compat.c
Go to the documentation of this file.
00001 #include "php_config.h" 
00002 #ifdef HAVE_GD_PNG
00003 /* needs to be first */
00004 # include <png.h>
00005 #endif
00006 
00007 #ifdef HAVE_GD_JPG
00008 # include <jpeglib.h>
00009 #endif
00010 
00011 #ifdef HAVE_GD_JPG
00012 int gdJpegGetVersionInt()
00013 {
00014        return JPEG_LIB_VERSION;
00015 }
00016 
00017 const char * gdJpegGetVersionString()
00018 {
00019        switch(JPEG_LIB_VERSION) {
00020               case 62:
00021                      return "6b";
00022                      break;
00023               default:
00024                      return "unknown";
00025        }
00026 }
00027 #endif
00028 
00029 #ifdef HAVE_GD_PNG
00030 const char * gdPngGetVersionString()
00031 {
00032        return PNG_LIBPNG_VER_STRING;
00033 }
00034 #endif
00035