diff options
author | Andy Wingo <wingo@pobox.com> | 2018-06-20 14:40:52 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-06-20 14:40:52 +0200 |
commit | 2b4ecafab8cb0d57b2a82ac650274b7b7ae7db83 (patch) | |
tree | 7bdef756e2c91d179e1d13497506962fd331333a /libguile/inline.h | |
parent | d04ff278f588411a447303354df9c05d1dd23473 (diff) | |
download | guile-2b4ecafab8cb0d57b2a82ac650274b7b7ae7db83.tar.gz |
Move SCM_C_INLINE_KEYWORD definition to inline.h
* libguile/__scm.h:
* libguile/inline.h (SCM_C_INLINE_KEYWORD): Move this definition here.
Diffstat (limited to 'libguile/inline.h')
-rw-r--r-- | libguile/inline.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libguile/inline.h b/libguile/inline.h index 4c1781375..7bafb0626 100644 --- a/libguile/inline.h +++ b/libguile/inline.h @@ -27,6 +27,17 @@ #include "libguile/__scm.h" +/* Define SCM_C_INLINE_KEYWORD so that it can be used as a replacement + for the "inline" keyword, expanding to nothing when "inline" is not + available. +*/ + +#ifdef SCM_C_INLINE +#define SCM_C_INLINE_KEYWORD SCM_C_INLINE +#else +#define SCM_C_INLINE_KEYWORD +#endif + /* We would like gnu89 extern inline semantics, not C99 extern inline semantics, so that we can be sure to avoid reifying definitions of inline functions in all compilation units, which is a possibility at |