diff options
author | Marius Vollmer <mvo@zagadka.de> | 2003-09-12 14:13:48 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2003-09-12 14:13:48 +0000 |
commit | 2b2c6fca20f959db6e58e6638059f74a817f4fea (patch) | |
tree | dc31f523a63588e4debe7b0abbc1f0c46f4b98c0 /libguile/inline.h | |
parent | 0d5e348022e1da4d51a7ddf2b7a3412197c507ac (diff) | |
download | guile-2b2c6fca20f959db6e58e6638059f74a817f4fea.tar.gz |
Use "extern inline" only with GCC. Use "static
inline" else.
Diffstat (limited to 'libguile/inline.h')
-rw-r--r-- | libguile/inline.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/libguile/inline.h b/libguile/inline.h index 393865233..0a3c8ad75 100644 --- a/libguile/inline.h +++ b/libguile/inline.h @@ -3,7 +3,7 @@ #ifndef SCM_INLINE_H #define SCM_INLINE_H -/* Copyright (C) 2001, 2002 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,7 +53,12 @@ extern unsigned scm_newcell_count; #if defined SCM_C_INLINE && ! defined SCM_INLINE_C_INCLUDING_INLINE_H /* definitely inlining */ -extern SCM_C_INLINE +#ifdef __GNUC__ +extern +#else +static +#endif +SCM_C_INLINE #endif SCM scm_cell (scm_t_bits car, scm_t_bits cdr) @@ -145,7 +150,12 @@ scm_cell (scm_t_bits car, scm_t_bits cdr) #if defined SCM_C_INLINE && ! defined SCM_INLINE_C_INCLUDING_INLINE_H /* definitely inlining */ -extern SCM_C_INLINE +#ifdef __GNUC__ +extern +#else +static +#endif +SCM_C_INLINE #endif SCM scm_double_cell (scm_t_bits car, scm_t_bits cbr, |