From 8852033a0d6f9349d59a2255f40749b022e97b6b Mon Sep 17 00:00:00 2001 From: hobbs Date: Mon, 10 Oct 2005 21:33:08 +0000 Subject: ensure MODULE_SCOPE decl --- ChangeLog | 4 ++++ generic/tclInt.h | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 47f87eb..a39aaf4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-10-10 Jeff Hobbs + + * generic/tclInt.h: ensure MODULE_SCOPE decl + 2005-10-07 Jeff Hobbs * unix/tclUnixFCmd.c (TraverseUnixTree): Adjust 2004-11-11 change to diff --git a/generic/tclInt.h b/generic/tclInt.h index 2538772..d2da3b7 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclInt.h,v 1.118.2.17 2005/08/03 22:23:42 dgp Exp $ + * RCS: @(#) $Id: tclInt.h,v 1.118.2.18 2005/10/10 21:33:09 hobbs Exp $ */ #ifndef _TCLINT @@ -77,6 +77,19 @@ # endif #endif +/* + * Used to tag functions that are only to be visible within the module being + * built and not outside it (where this is supported by the linker). + */ + +#ifndef MODULE_SCOPE +# ifdef __cplusplus +# define MODULE_SCOPE extern "C" +# else +# define MODULE_SCOPE extern +# endif +#endif + #undef TCL_STORAGE_CLASS #ifdef BUILD_tcl # define TCL_STORAGE_CLASS DLLEXPORT -- cgit v0.12