diff options
author | hobbs <hobbs> | 2005-10-10 21:33:08 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-10-10 21:33:08 (GMT) |
commit | 8852033a0d6f9349d59a2255f40749b022e97b6b (patch) | |
tree | df52d0bad65ba791b41f25ff3a200e300fa28ba1 | |
parent | dae8beb32c6c48c608924febeac3c27ca52e9d67 (diff) | |
download | tcl-8852033a0d6f9349d59a2255f40749b022e97b6b.zip tcl-8852033a0d6f9349d59a2255f40749b022e97b6b.tar.gz tcl-8852033a0d6f9349d59a2255f40749b022e97b6b.tar.bz2 |
ensure MODULE_SCOPE decl
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | generic/tclInt.h | 15 |
2 files changed, 18 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2005-10-10 Jeff Hobbs <jeffh@ActiveState.com> + + * generic/tclInt.h: ensure MODULE_SCOPE decl + 2005-10-07 Jeff Hobbs <jeffh@ActiveState.com> * 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 |