Mesh: fix WildMagic4 build on Darwin AArch64 (Apple M1)

A previous fix from 2012 excluded the x86_64 platfrom from using 32-bit Carbon APIs.

- https://tracker.freecadweb.org/view.php?id=656 (WildMagic4 doesn't build on 64-bit Mac OS)

Apply the same fix for AArch64 to ensure that the Mesh module can be built on Apple M1.
This commit is contained in:
Noah
2021-09-30 16:18:34 +02:00
committed by wwmayer
parent 2fe6ffcaf6
commit c482e90efc

View File

@@ -569,7 +569,7 @@ int System::Write8be (FILE* pkFile, int iQuantity, const void* pvData)
const char* System::GetPath (const char* acDirectory, const char* acFilename)
{
// #0000656: WildMagic4 doesn't build on 64-bit Mac OS
#if defined(__APPLE__) && !defined(__x86_64__)
#if defined(__APPLE__) && !defined(__aarch64__) && !defined(__x86_64__)
// An application-relative path is needed for the applications to be able
// to find the input data sets. Unfortunately, there is no exact way to
// predict which directory the application is run from, since this depends