From: Ari Johnson Date: Wed, 27 Apr 2011 02:09:20 +0000 (-0500) Subject: Do not inline gperf functions on Apple systems X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=00be0beb452f1375858433f0bc78b002c4994788;p=cobramush.git Do not inline gperf functions on Apple systems --- diff --git a/src/htmltab.gperf b/src/htmltab.gperf index 7f79610..1f0e840 100644 --- a/src/htmltab.gperf +++ b/src/htmltab.gperf @@ -9,6 +9,12 @@ %enum %compare-lengths %ignore-case + +#ifdef __APPLE__ +#define __inline +#undef __GNUC_STDC_INLINE__ +#endif + %% A B diff --git a/src/lmathtab.gperf b/src/lmathtab.gperf index b7e1016..17b7092 100644 --- a/src/lmathtab.gperf +++ b/src/lmathtab.gperf @@ -45,6 +45,11 @@ struct math { const char *name; /**< Name of the function. */ void (*func) (char **, int, char *, char **); /**< Pointer to function code. */ }; + +#ifdef __APPLE__ +#define __inline +#undef __GNUC_STDC_INLINE__ +#endif %% ADD, math_add SUB, math_sub