summaryrefslogtreecommitdiff
path: root/lisp/mp/mp.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 11:00:19 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-24 10:55:43 -0800
commitc5e1104503f13bb530f9c51bbe5674339675756f (patch)
tree51ccf3574dda24aa2bf380cb99b854d4652a86f0 /lisp/mp/mp.h
parent7a9fa61950200eb13600cdb57830e58a53bf78fa (diff)
Use AC_C_INLINE instead of ifdef __GNUC__ to check for inline keyword
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'lisp/mp/mp.h')
-rw-r--r--lisp/mp/mp.h7
1 files changed, 2 insertions, 5 deletions
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 */