summaryrefslogtreecommitdiffstats
path: root/tester/covoar
diff options
context:
space:
mode:
authorCillian O'Donnell <cpodonnell8@gmail.com>2017-09-13 16:45:30 +0100
committerChris Johns <chrisj@rtems.org>2017-09-14 12:22:01 +1000
commitf4773ac5c755b6635b4bdde71d2fbc89112750c2 (patch)
tree44d5a6e9d4c6e5eee2c415d92b7b7f139bc910ca /tester/covoar
parentAdd Windows includes so the rtemstoolkit builds. (diff)
downloadrtems-tools-f4773ac5c755b6635b4bdde71d2fbc89112750c2.tar.bz2
covoar: Add function defs to fix Windows build errors.
Closes #3129
Diffstat (limited to 'tester/covoar')
-rw-r--r--tester/covoar/DesiredSymbols.cc2
-rw-r--r--tester/covoar/ReportsBase.cc4
-rw-r--r--tester/covoar/TraceConverter.cc4
-rw-r--r--tester/covoar/covoar.cc4
4 files changed, 11 insertions, 3 deletions
diff --git a/tester/covoar/DesiredSymbols.cc b/tester/covoar/DesiredSymbols.cc
index 60bc7f7..fbb6ff2 100644
--- a/tester/covoar/DesiredSymbols.cc
+++ b/tester/covoar/DesiredSymbols.cc
@@ -511,7 +511,7 @@ namespace Coverage {
inputBuffer[ strlen(inputBuffer) - 1] = '\0';
// Use only the base filename without directory path.
-#if WIN32
+#ifdef _WIN32
#define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
#endif
realpath( inputBuffer, rpath );
diff --git a/tester/covoar/ReportsBase.cc b/tester/covoar/ReportsBase.cc
index 01950d0..0244601 100644
--- a/tester/covoar/ReportsBase.cc
+++ b/tester/covoar/ReportsBase.cc
@@ -14,7 +14,7 @@
#include "ReportsText.h"
#include "ReportsHtml.h"
-#if WIN32
+#ifdef _WIN32
#include <direct.h>
#endif
@@ -39,7 +39,7 @@ FILE* ReportsBase::OpenFile(
std::string file;
// Create the output directory if it does not already exist
-#if WIN32
+#ifdef _WIN32
sc = _mkdir( outputDirectory );
#else
sc = mkdir( outputDirectory,0755 );
diff --git a/tester/covoar/TraceConverter.cc b/tester/covoar/TraceConverter.cc
index 22b0f81..86bc6c1 100644
--- a/tester/covoar/TraceConverter.cc
+++ b/tester/covoar/TraceConverter.cc
@@ -24,6 +24,10 @@
#include "rld.h"
#include "rld-process.h"
+#ifdef _WIN32
+ #define kill(p,s) raise(s)
+#endif
+
char* progname;
void usage()
diff --git a/tester/covoar/covoar.cc b/tester/covoar/covoar.cc
index 5b55720..2d11f81 100644
--- a/tester/covoar/covoar.cc
+++ b/tester/covoar/covoar.cc
@@ -25,6 +25,10 @@
#include "rld-process.h"
+#ifdef _WIN32
+ #define kill(p,s) raise(s)
+#endif
+
/*
* Variables to control general behavior
*/