Skip to content

Commit a6c5d62

Browse files
authored
Merge pull request #55 from Pip-Install-Party/holdenkea-develop
compatibility changes for windows
2 parents 4ae5fb7 + bc1fa68 commit a6c5d62

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Interpreter/interpreter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#include "interpreter.h"
2+
3+
24
#include <iostream>
5+
#if defined(__APPLE__) || defined(__unix__)
36
#include <ncurses.h>
7+
#endif
48

59
std::string fileName = "Output.txt";
610
std::ofstream cursesBuffer(fileName);

main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,14 @@ int main() {
321321
// Display results
322322
interpreterOutput.flush();
323323
interpreterOutput.close();
324+
325+
#if defined(__APPLE__) || defined(__unix__)
324326
displayMessage("Results printed to Output.txt\n\n"
325327
"Press any key to quit. . .");
328+
#else
329+
displayMessage("Results printed to Output.txt\n\n");
330+
#endif
331+
326332

327333
waitForInput(); // Wait for user to press a key before exiting
328334

0 commit comments

Comments
 (0)