From bc566d672f0d21f1567b83ddd732e4089983a2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 4 Jul 2008 22:02:56 +0200 Subject: [PATCH] Fix `SCM_INTERNAL' with GCC 4.3. --- libguile/ChangeLog | 6 ++++++ libguile/__scm.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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