summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-04 10:26:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-04 10:26:36 (GMT)
commitd99627e7be69b7a881a5d57aab6f17b27b19d244 (patch)
treed52f318fc7b2a8a7637ee731b50cf8138730845a /tools
parente753fb2da29826ca00b11b3570a487418c353b6f (diff)
parenta32fae2595e52296e08d1240fcf93f2161074f62 (diff)
downloadtcl-d99627e7be69b7a881a5d57aab6f17b27b19d244.zip
tcl-d99627e7be69b7a881a5d57aab6f17b27b19d244.tar.gz
tcl-d99627e7be69b7a881a5d57aab6f17b27b19d244.tar.bz2
merge trunk
Diffstat (limited to 'tools')
-rw-r--r--tools/genStubs.tcl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl
index 6ce4243..c12568b 100644
--- a/tools/genStubs.tcl
+++ b/tools/genStubs.tcl
@@ -983,6 +983,8 @@ proc genStubs::emitHeader {name} {
append text "#define ${CAPName}_STUBS_REVISION $revision\n"
}
+ append text "\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n"
+
emitDeclarations $name text
if {[info exists hooks($name)]} {
@@ -1010,8 +1012,7 @@ proc genStubs::emitHeader {name} {
append text "} ${capName}Stubs;\n\n"
- append text "#ifdef __cplusplus\nextern \"C\" {\n#endif\n"
- append text "extern const ${capName}Stubs *${name}StubsPtr;\n"
+ append text "extern const ${capName}Stubs *${name}StubsPtr;\n\n"
append text "#ifdef __cplusplus\n}\n#endif\n"
emitMacros $name text