summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorhobbs <hobbs>2005-10-10 21:33:08 (GMT)
committerhobbs <hobbs>2005-10-10 21:33:08 (GMT)
commit8852033a0d6f9349d59a2255f40749b022e97b6b (patch)
treedf52d0bad65ba791b41f25ff3a200e300fa28ba1 /generic/tclInt.h
parentdae8beb32c6c48c608924febeac3c27ca52e9d67 (diff)
downloadtcl-8852033a0d6f9349d59a2255f40749b022e97b6b.zip
tcl-8852033a0d6f9349d59a2255f40749b022e97b6b.tar.gz
tcl-8852033a0d6f9349d59a2255f40749b022e97b6b.tar.bz2
ensure MODULE_SCOPE decl
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h15
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