1 #include "php_config.h" 2 #ifdef HAVE_GD_PNG 3 /* needs to be first */ 4 # include <png.h> 5 #endif 6 7 #ifdef HAVE_GD_JPG 8 # include <jpeglib.h> 9 #endif 10 11 #ifdef HAVE_GD_JPG gdJpegGetVersionInt()12int gdJpegGetVersionInt() 13 { 14 return JPEG_LIB_VERSION; 15 } 16 gdJpegGetVersionString()17const char * gdJpegGetVersionString() 18 { 19 switch(JPEG_LIB_VERSION) { 20 case 62: 21 return "6b"; 22 break; 23 default: 24 return "unknown"; 25 } 26 } 27 #endif 28 29 #ifdef HAVE_GD_PNG gdPngGetVersionString()30const char * gdPngGetVersionString() 31 { 32 return PNG_LIBPNG_VER_STRING; 33 } 34 #endif 35 36