libmng build issues fix (#687)

This commit is contained in:
Calvin Hill
2016-07-09 14:14:28 +01:00
committed by waddlesplash
parent 70cf14f8cd
commit 77ce7d95f9
2 changed files with 26 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ LICENSE="LIBMNG"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/libmng/files/libmng-devel/$portVersion/libmng-$portVersion.tar.xz"
CHECKSUM_SHA256="4a462fdd48d4bc82c1d7a21106c8a18b62f8cc0042454323058e6da0dbb57dd3"
PATCHES="libmng-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

View File

@@ -0,0 +1,25 @@
From f96cd1e17baaac1c9064274252892515521f4f5f Mon Sep 17 00:00:00 2001
From: Calvin Hill <calvin@hakobaito.co.uk>
Date: Sat, 9 Jul 2016 01:06:59 +0100
Subject: [PATCH] Fix libmng build issues
---
libmng_jpeg.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libmng_jpeg.c b/libmng_jpeg.c
index f5c43a4..e457d00 100644
--- a/libmng_jpeg.c
+++ b/libmng_jpeg.c
@@ -67,6 +67,9 @@
#include "libmng_pixels.h"
#include "libmng_jpeg.h"
+#define TRUE 1
+#define FALSE 0
+
#if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
#pragma option -A /* force ANSI-C */
#endif
--
2.2.2