diff options
| Commit | b38f33e3997056da5933a5eeeccc2df54899ad98 (patch) | |
|---|---|---|
| Author | 2018-11-05 23:25:04 +0200 | |
| Committer | 2018-11-05 23:25:04 +0200 | |
| Files | 7b9e612756565588896033bdb9ea61f05a1865b3 /JSImpl/src | |
| IPL-b38f33e3997056da5933a5eeeccc2df54899ad98.tar IPL-b38f33e3997056da5933a5eeeccc2df54899ad98.tar.gz IPL-b38f33e3997056da5933a5eeeccc2df54899ad98.zip | ||
| Parent | c6bc94e096d2eb0565045232be2c37b8a4bf06f9 (diff) | |
Fixed Linux build
1 files changed, 3 insertions, 2 deletions
| -rw-r--r-- | JSImpl/src/main.cpp | 5 |
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; |
