From: Ari Johnson Date: Wed, 27 Apr 2011 02:13:58 +0000 (-0400) Subject: Fix lmathtab.gperf APPLE #ifdef location X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=cc318459965daf0a23e556440f2fbc8ec8896062;p=cobramush.git Fix lmathtab.gperf APPLE #ifdef location --- diff --git a/src/lmathtab.gperf b/src/lmathtab.gperf index 17b7092..6c61d70 100644 --- a/src/lmathtab.gperf +++ b/src/lmathtab.gperf @@ -9,6 +9,11 @@ %define initializer-suffix ,NULL %{ +#ifdef __APPLE__ +#define __inline +#undef __GNUC_STDC_INLINE__ +#endif + /** Declaration macro for math functions */ #define MATH_FUNC(func) static void func(char **ptr, int nptr, char *buff, char **bp) @@ -45,11 +50,6 @@ 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