summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2004-11-02 21:08:58 (GMT)
committerdavygrvy <davygrvy@pobox.com>2004-11-02 21:08:58 (GMT)
commitb50dd698598a788463e783df77da20fd6e7b5680 (patch)
tree5c4ff70aeb95c6b4860c910509d5fc6bd2771ef1 /generic
parent113aefb96e7d02c017c28e139f8468a088e4cb6c (diff)
downloadtcl-b50dd698598a788463e783df77da20fd6e7b5680.zip
tcl-b50dd698598a788463e783df77da20fd6e7b5680.tar.gz
tcl-b50dd698598a788463e783df77da20fd6e7b5680.tar.bz2
* generic/tclInt.h: added a check for #ifdef __cplusplus around the #define
of MODULE_SCOPE. About the only time it would be problem is when someone is statically linking to Tcl and accessing internals from a C++ file and has name mangling issues.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclInt.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 2c23bc6..8fcc9fc 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.191 2004/11/02 10:11:20 dkf Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.192 2004/11/02 21:08:58 davygrvy Exp $
*/
#ifndef _TCLINT
@@ -69,7 +69,11 @@
*/
#ifndef MODULE_SCOPE
-#define MODULE_SCOPE extern
+# ifdef __cplusplus
+# define MODULE_SCOPE extern "C"
+# else
+# define MODULE_SCOPE extern
+# endif
#endif
/*