diff options
author | Nathanael Jones <nathanael.jones@gmail.com> | 2015-01-07 02:01:53 -0500 |
---|---|---|
committer | Nathanael Jones <nathanael.jones@gmail.com> | 2015-01-07 02:01:53 -0500 |
commit | c7bf3794b67267944e4b07db51b6738bdeeeee69 (patch) | |
tree | e0ff3f6aa17821c7ef49779dd6da6fd2f2b9bc0c /src/gdpp.cxx | |
parent | 40c61299862c313802e1017747ba996f627568b1 (diff) | |
download | libgd-c7bf3794b67267944e4b07db51b6738bdeeeee69.tar.gz |
Update gdpp.* to use HAVE_LIBPNG vs HAVE_PNG, etc.- should honor the same feature support flags as the rest of gd,
Diffstat (limited to 'src/gdpp.cxx')
-rw-r--r-- | src/gdpp.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gdpp.cxx b/src/gdpp.cxx index 83bd73f..a8101fc 100644 --- a/src/gdpp.cxx +++ b/src/gdpp.cxx @@ -40,7 +40,7 @@ namespace GD 0x89 0x50 0x4E 0x47 0x0D 0x0A 0x1A 0x0A == .PNG\r\n.\n */ -#if HAVE_PNG +#ifdef HAVE_LIBPNG case 0x89: // PNG rtn = CreateFromPng(in); break; @@ -51,7 +51,7 @@ namespace GD case 0x47: // GIF rtn = CreateFromGif(in); break; -#if HAVE_JPEG +#ifdef HAVE_LIBJPEG /* JPEG A JFIF-standard file will start with the four bytes (hex) FF D8 FF E0, followed by two variable bytes (often hex 00 10), followed by 'JFIF'. @@ -122,7 +122,7 @@ namespace GD bool rtn; switch (in.peek()) { -#if HAVE_PNG +#ifdef HAVE_LIBPNG /* PNG The first eight bytes of a PNG file always contain the following (decimal) values: 0x89 0x50 0x4E 0x47 0x0D 0x0A 0x1A 0x0A @@ -140,7 +140,7 @@ namespace GD rtn = CreateFromGif(in); break; -#if HAVE_JPEG +#ifdef HAVE_LIBJPEG /* JPEG A JFIF-standard file will start with the four bytes (hex) FF D8 FF E0, followed by two variable bytes (often hex 00 10), followed by 'JFIF'. @@ -193,7 +193,7 @@ namespace GD switch (((unsigned char * )data)[0]) { -#if HAVE_PNG +#ifdef HAVE_LIBPNG /* PNG The first eight bytes of a PNG file always contain the following (decimal) values: 0x89 0x50 0x4E 0x47 0x0D 0x0A 0x1A 0x0A @@ -210,7 +210,7 @@ namespace GD rtn = CreateFromGif(size, data); break; -#if HAVE_JPEG +#ifdef HAVE_LIBJPEG /* JPEG A JFIF-standard file will start with the four bytes (hex) FF D8 FF E0, followed by two variable bytes (often hex 00 10), followed by 'JFIF'. |