From 00be0beb452f1375858433f0bc78b002c4994788 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Tue, 26 Apr 2011 21:09:20 -0500 Subject: [PATCH] Do not inline gperf functions on Apple systems --- src/htmltab.gperf | 6 ++++++ src/lmathtab.gperf | 5 +++++ 2 files changed, 11 insertions(+) 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 -- 2.30.2