Skip to content

Commit e785d79

Browse files
committed
Fixing cross-platform build of Trace.cpp implementation
1 parent 2f46e6a commit e785d79

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

Src/DasherCore/Common/Trace.cpp

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// Copyright (c) 2005 David Ward
44

55
#include "Trace.h"
6+
#include <cstdio>
7+
#include <iostream>
68

79
// Track memory leaks on Windows to the line that new'd the memory
810
#ifdef _WIN32
@@ -16,26 +18,7 @@ static char THIS_FILE[] = __FILE__;
1618

1719
// Customize behaviour of Trace here
1820

19-
#ifdef _WIN32
20-
21-
// On Windows, send Trace to the Debug window in DevStudio
22-
// The ATL/MFC Trace application also picks up Trace when running
23-
24-
// #include "Windows.h"
25-
26-
void DasherTraceOutputImpl(const char *pszFormat, va_list vargs) {
27-
// TODO: Reimplement
28-
// char buffer[2048];
29-
// _vsnprintf(buffer, 2048,pszFormat, vargs);
30-
// OutputDebugStringA(buffer);
31-
}
32-
33-
#else
34-
35-
// Send Trace to stdout
36-
21+
// Send Trace to stdout
3722
void DasherTraceOutputImpl(const char *pszFormat, va_list vargs) {
3823
vfprintf(stdout, pszFormat, vargs);
3924
}
40-
41-
#endif

0 commit comments

Comments
 (0)