Index: generic/tcl.h
===================================================================
RCS file: /cvsroot/tcl/tcl/generic/tcl.h,v
retrieving revision 1.311
retrieving revision 1.309
diff -u -r1.311 -r1.309
--- generic/tcl.h	14 Dec 2010 21:51:53 -0000	1.311
+++ generic/tcl.h	10 Dec 2010 21:59:24 -0000	1.309
@@ -13,7 +13,7 @@
  * See the file "license.terms" for information on usage and redistribution of
  * this file, and for a DISCLAIMER OF ALL WARRANTIES.
  *
- * RCS: @(#) $Id: tcl.h,v 1.311 2010/12/14 21:51:53 nijtmans Exp $
+ * RCS: @(#) $Id: tcl.h,v 1.309 2010/12/10 21:59:24 nijtmans Exp $
  */
 
 #ifndef _TCL
@@ -190,7 +190,7 @@
 #   endif
 #else
 #   define DLLIMPORT
-#   if defined(__GNUC__) && !defined(NO_VIZ) && !defined(STATIC_BUILD)
+#   if defined(__GNUC__) && __GNUC__ > 3
 #       define DLLEXPORT __attribute__ ((visibility("default")))
 #   else
 #       define DLLEXPORT
Index: unix/tcl.m4
===================================================================
RCS file: /cvsroot/tcl/tcl/unix/tcl.m4,v
retrieving revision 1.231
retrieving revision 1.230
diff -u -r1.231 -r1.230
--- unix/tcl.m4	13 Dec 2010 22:33:09 -0000	1.231
+++ unix/tcl.m4	12 Dec 2010 11:51:44 -0000	1.230
@@ -1056,7 +1056,6 @@
     AS_IF([test $tcl_cv_cc_visibility_hidden = yes], [
 	CFLAGS="$CFLAGS -fvisibility=hidden"
     ], [
-	AC_DEFINE(NO_VIZ, [], [No visibility attribute])
 	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
 	AC_TRY_LINK([
 	    extern __attribute__((__visibility__("hidden"))) void f(void);
Index: unix/configure
===================================================================
RCS file: /cvsroot/tcl/tcl/unix/configure,v
retrieving revision 1.298
retrieving revision 1.297
diff -u -r1.298 -r1.297
--- unix/configure	13 Dec 2010 22:33:09 -0000	1.298
+++ unix/configure	12 Dec 2010 11:51:44 -0000	1.297
@@ -6545,11 +6545,6 @@
 
 else
 
-
-cat >>confdefs.h <<\_ACEOF
-#define NO_VIZ
-_ACEOF
-
 	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
 	cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
