diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-04 10:26:36 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-04 10:26:36 (GMT) |
commit | d99627e7be69b7a881a5d57aab6f17b27b19d244 (patch) | |
tree | d52f318fc7b2a8a7637ee731b50cf8138730845a /tools | |
parent | e753fb2da29826ca00b11b3570a487418c353b6f (diff) | |
parent | a32fae2595e52296e08d1240fcf93f2161074f62 (diff) | |
download | tcl-d99627e7be69b7a881a5d57aab6f17b27b19d244.zip tcl-d99627e7be69b7a881a5d57aab6f17b27b19d244.tar.gz tcl-d99627e7be69b7a881a5d57aab6f17b27b19d244.tar.bz2 |
merge trunk
Diffstat (limited to 'tools')
-rw-r--r-- | tools/genStubs.tcl | 5 |
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 |