mac: bump version to 4.70 (#3808)

This commit is contained in:
Robert Kausch
2019-04-29 10:05:47 +02:00
committed by Jérôme Duval
parent 15128e181d
commit c2b142d0e0
2 changed files with 27 additions and 2 deletions

View File

@@ -7,8 +7,9 @@ COPYRIGHT="2000-2019 Matthew T. Ashland"
LICENSE="Monkey's Audio SDK and Source Code License Agreement"
REVISION="1"
SOURCE_URI="https://www.monkeysaudio.com/files/MAC_SDK_${portVersion/./}.zip"
CHECKSUM_SHA256="e2af2e9d57b7cd66e5d6525fcd8fcde3839f48a623d31aca22a92cb0d0ea297c"
CHECKSUM_SHA256="442bffe3e36bd90b4cfe92a07de7a9cfc9744c4fd643afd0bdd4a8985b6d99bf"
SOURCE_DIR=""
PATCHES="mac-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
@@ -20,7 +21,7 @@ if [ "$targetArchitecture" = x86_gcc2 ]; then
commandBinDir=$prefix/bin
fi
libVersion="4"
libVersion="5"
PROVIDES="
mac$secondaryArchSuffix = $portVersion

View File

@@ -0,0 +1,24 @@
From d3ba1a87284e0325202ba694976346659d5cdc32 Mon Sep 17 00:00:00 2001
From: Robert Kausch <robert.kausch@freac.org>
Date: Sun, 28 Apr 2019 22:50:39 +0000
Subject: Fix file access
diff --git a/Source/Shared/StdLibFileIO.cpp b/Source/Shared/StdLibFileIO.cpp
index eee3c01..17b03e9 100644
--- a/Source/Shared/StdLibFileIO.cpp
+++ b/Source/Shared/StdLibFileIO.cpp
@@ -218,9 +218,7 @@ int64 CStdLibFileIO::GetPosition()
{
#ifdef PLATFORM_ANDROID
return ftell(m_pFile);
-#elif defined(PLATFORM_LINUX)
- return ftello64(m_pFile);
-#elif PLATFORM_APPLE
+#elif !defined(PLATFORM_WINDOWS)
return ftello(m_pFile);
#else
return _ftelli64(m_pFile);
--
2.21.0