pkgsrc/net/ns/patches/patch-common_tclAppInit.cc

22 lines
626 B
C++

$NetBSD: patch-common_tclAppInit.cc,v 1.1 2013/03/03 01:07:54 joerg Exp $
--- common/tclAppInit.cc.orig 2013-03-02 23:41:45.000000000 +0000
+++ common/tclAppInit.cc
@@ -23,7 +23,9 @@ extern EmbeddedTcl et_ns_ptypes;
/* MSVC requires this global var declaration to be outside of 'extern "C"' */
#ifdef MEMDEBUG_SIMULATIONS
#include "mem-trace.h"
+extern "C++" {
MemTrace *globalMemTrace;
+}
#endif
#define NS_BEGIN_EXTERN_C extern "C" {
@@ -237,7 +239,6 @@ int
Tcl_AppInit(Tcl_Interp *interp)
{
#ifdef MEMDEBUG_SIMULATIONS
- extern MemTrace *globalMemTrace;
globalMemTrace = new MemTrace;
#endif