Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / main.cpp
diff options
context:
space:
mode:
Commitb38f33e3997056da5933a5eeeccc2df54899ad98 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-11-05 23:25:04 +0200
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-11-05 23:25:04 +0200
Files7b9e612756565588896033bdb9ea61f05a1865b3 /JSImpl/src/main.cpp
IPL-b38f33e3997056da5933a5eeeccc2df54899ad98.tar
IPL-b38f33e3997056da5933a5eeeccc2df54899ad98.tar.gz
IPL-b38f33e3997056da5933a5eeeccc2df54899ad98.zip
Parentc6bc94e096d2eb0565045232be2c37b8a4bf06f9 (diff)
Fixed Linux build
1 files changed, 3 insertions, 2 deletions
-rw-r--r--JSImpl/src/main.cpp5
diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp
index f3eb90a..a10e4d1 100644
--- a/JSImpl/src/main.cpp
+++ b/JSImpl/src/main.cpp
@@ -3,6 +3,7 @@
#include "ASTPrinter.h"
#include "ASTInterpreter.h"
#include <iostream>
+#include <cstring>
void RunParseCalc()
{
@@ -42,11 +43,11 @@ void InteractiveInterpreter()
do
{
std::cin.getline(command, 1000);
- if (strcmp(command, "exit") == 0)
+ if (std::strcmp(command, "exit") == 0)
{
break;
}
- if (strcmp(command, "print") == 0)
+ if (std::strcmp(command, "print") == 0)
{
i.Print(p);
continue;