summaryrefslogtreecommitdiff
path: root/ext/gd/php_gd.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/php_gd.h')
-rw-r--r--ext/gd/php_gd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h
index 982decd064..e6db0c0ec0 100644
--- a/ext/gd/php_gd.h
+++ b/ext/gd/php_gd.h
@@ -47,6 +47,7 @@
#define PHP_GDIMG_TYPE_GD2PART 10
#define PHP_GDIMG_TYPE_WEBP 11
#define PHP_GDIMG_TYPE_BMP 12
+#define PHP_GDIMG_TYPE_TGA 13
#define PHP_IMG_GIF 1
#define PHP_IMG_JPG 2
@@ -56,6 +57,7 @@
#define PHP_IMG_XPM 16
#define PHP_IMG_WEBP 32
#define PHP_IMG_BMP 64
+#define PHP_IMG_TGA 128
#ifdef PHP_WIN32
# define PHP_GD_API __declspec(dllexport)
@@ -163,6 +165,9 @@ PHP_FUNCTION(imagecreatefromgd2part);
#if defined(HAVE_GD_BMP)
PHP_FUNCTION(imagecreatefrombmp);
#endif
+#if defined(HAVE_GD_TGA)
+PHP_FUNCTION(imagecreatefromtga);
+#endif
#if defined(HAVE_GD_XPM)
PHP_FUNCTION(imagecreatefromxpm);
#endif