diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | lisp/mp/mp.h | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index f731f47..87a6697 100644 --- a/configure.ac +++ b/configure.ac @@ -34,6 +34,8 @@ XORG_DEFAULT_OPTIONS AC_CONFIG_HEADERS([config.h]) +AC_C_INLINE + m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) AC_PROG_RANLIB PKG_PROG_PKG_CONFIG diff --git a/lisp/mp/mp.h b/lisp/mp/mp.h index c5a74f3..1c28f8b 100644 --- a/lisp/mp/mp.h +++ b/lisp/mp/mp.h @@ -43,11 +43,8 @@ #ifndef __mp_h_ #define __mp_h_ -#ifdef __GNUC__ -#define INLINE __inline__ -#else -#define INLINE /**/ -#endif +/* relies on autoconf's AC_C_INLINE to #define inline if needed */ +#define INLINE inline /* this normally is better for multiplication and also * simplify addition loops putting the larger value first */ |