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 | |
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.
-rw-r--r-- | libguile/__scm.h | 11 | ||||
-rw-r--r-- | libguile/inline.h | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/libguile/__scm.h b/libguile/__scm.h index 2e45a319d..eae1afb6d 100644 --- a/libguile/__scm.h +++ b/libguile/__scm.h @@ -388,17 +388,6 @@ typedef long SCM_STACKITEM; -/* 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 - /* Handling thread-local storage (TLS). */ #ifdef SCM_HAVE_THREAD_STORAGE_CLASS 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 |