diff --git a/libguile/ChangeLog b/libguile/ChangeLog index 38b656eb1..805cfa81d 100644 --- a/libguile/ChangeLog +++ b/libguile/ChangeLog @@ -1,3 +1,9 @@ +2008-07-04 Ludovic Courtès + + * __scm.h (SCM_INTERNAL): Add `extern' so that these symbols are + not considered as "common" by GCC 4.3. Reported by Patrick + Horgan . + 2008-06-28 Ludovic Courtès * Makefile.am (INCLUDES): Renamed to... diff --git a/libguile/__scm.h b/libguile/__scm.h index 76b444857..30077fd46 100644 --- a/libguile/__scm.h +++ b/libguile/__scm.h @@ -101,9 +101,9 @@ * as having "internal" linkage. */ #if (defined __GNUC__) && \ ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ == 3)) -# define SCM_INTERNAL __attribute__ ((__visibility__ ("internal"))) +# define SCM_INTERNAL extern __attribute__ ((__visibility__ ("internal"))) #else -# define SCM_INTERNAL +# define SCM_INTERNAL extern #endif