diff options
author | hobbs <hobbs> | 2005-10-10 21:33:08 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-10-10 21:33:08 (GMT) |
commit | e3e32bf5dd32e11ba9401e3302660adb576cbcdd (patch) | |
tree | df52d0bad65ba791b41f25ff3a200e300fa28ba1 /generic/tclInt.h | |
parent | cd6771c8bef8af65ae7247b3e3f3f19f70206b01 (diff) | |
download | tcl-e3e32bf5dd32e11ba9401e3302660adb576cbcdd.zip tcl-e3e32bf5dd32e11ba9401e3302660adb576cbcdd.tar.gz tcl-e3e32bf5dd32e11ba9401e3302660adb576cbcdd.tar.bz2 |
ensure MODULE_SCOPE decl
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 15 |
1 files changed, 14 insertions, 1 deletions
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 |