Mercurial > mxe-octave
annotate src/gd-1-libpng15.patch @ 2333:f653602a0500
Rebrand to new project name MXE
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 28 Mar 2012 15:46:58 +0200 |
parents | 7cc1f4c38523 |
children | 99516e73b368 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1620
diff
changeset
|
1 # This file is part of MXE. |
1620
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
2 # See doc/index.html for further information. |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
3 |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
4 This patch has been taken from: |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
5 http://bugs.gentoo.org/show_bug.cgi?id=305101 |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
6 http://repos.archlinux.org/wsvn/packages/gd/trunk/libpng14.patch |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
7 |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
8 --- a/gd_png.c |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
9 +++ b/gd_png.c |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
10 @@ -149,7 +149,7 @@ |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
11 return NULL; |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
12 } |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
13 |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
14 - if (!png_check_sig (sig, 8)) { /* bad signature */ |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
15 + if (png_sig_cmp (sig, 0, 8)) { /* bad signature */ |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
16 return NULL; /* bad signature */ |
7cc1f4c38523
package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents:
diff
changeset
|
17 } |