From b2116467d6d1d592a306180e1a41a89d89926cde Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 24 Sep 2021 05:27:26 +1000 Subject: util/delegate.cpp: PowerPC-64 Little Endian drops function descriptors. At some point I'll make a proper header ABI detection. There's too much stuff to keep in the delegate sources, and it will be useful for other stuff like recompilers. --- src/lib/util/delegate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/util/delegate.cpp b/src/lib/util/delegate.cpp index 3ccb7294ee4..6f73c925da1 100644 --- a/src/lib/util/delegate.cpp +++ b/src/lib/util/delegate.cpp @@ -29,7 +29,9 @@ // other platforms using this convention include: // * AIX, Classic MacOS and WinNT on 32-bit POWER/PowerPC // * pretty much anything on Itanium -#if (defined(__ppc64__) || (defined(__PPC64__))) && !defined(__APPLE__) +// separately, on some architectures, function descriptors are stored in +// vtables directly +#if defined(__ia64__) #define MAME_DELEGATE_VT_DESCRIPTOR 1 #endif #ifndef MAME_DELEGATE_VT_DESCRIPTOR -- cgit v1.2.3