[PD-dev] [pure-data:patches] #550 Less restrictive definition of t_gotfn on arm64

IOhannes m zmölnig zmoelnig at users.sf.net
Tue May 5 17:03:20 CEST 2015




---

** [patches:#550] Less restrictive definition of t_gotfn on arm64**

**Status:** open
**Group:** bugfix
**Labels:** public interface 
**Created:** Tue May 05, 2015 03:03 PM UTC by IOhannes m zmölnig
**Last Updated:** Tue May 05, 2015 03:03 PM UTC
**Owner:** Miller Puckette

Currently `t_gotfn` is declared differently on arm64 and elsewhere:

~~~~ C
#ifdef __aarch64__
typedef void (*t_gotfn)(void *x);
#else
typedef void (*t_gotfn)(void *x, ...);
#endif
~~~~

As reported by [Debian bug #783824](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783824), the restrictive definition of `t_gotfn` on arm64 only
makes sense on iOS, but not on Linux (where different calling conventions are
used).
As the restrictive definition needlessly breaks builds on *linux/arm64*, this
patch applies to restrictive definition only on *OSX/arm64* (rather than
*any/arm64*):

~~~~ C
#if defined(__APPLE__) && defined(__aarch64__)
typedef void (*t_gotfn)(void *x);
#else
typedef void (*t_gotfn)(void *x, ...);
#endif
~~~~


---

Sent from sourceforge.net because pd-dev at lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/patches/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20150505/818c6d69/attachment.html>


More information about the Pd-dev mailing list