Fix `SCM_INTERNAL' with GCC 4.3.
authorLudovic Courtès <ludo@gnu.org>
Fri, 4 Jul 2008 20:02:56 +0000 (22:02 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 4 Jul 2008 20:02:56 +0000 (22:02 +0200)
libguile/ChangeLog
libguile/__scm.h

index 8f3ccfc..04d4e7c 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-04  Ludovic Courtès  <ludo@gnu.org>
+
+       * __scm.h (SCM_INTERNAL): Add `extern' so that these symbols are
+       not considered as "common" by GCC 4.3.  Reported by Patrick
+       Horgan <phorgan1@gmail.com>.
+
 2008-06-28  Ludovic Courtès  <ludo@gnu.org>
 
        * Makefile.am (INCLUDES): Renamed to...
index 76b4448..30077fd 100644 (file)
  * 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