Skip to content

Commit

Permalink
修复编译问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Feb 6, 2023
1 parent d25aaf7 commit dbc6b57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions emmy_debugger/src/transporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ void Transporter::Receive(const char* data, size_t len)
{
std::string text(buf + start, pos - start);
auto document = nlohmann::json::parse(text);
// bug 如果lua代码执行结束,这里行为未定义
OnReceiveMessage(document);
}
readHead = !readHead;
Expand Down
1 change: 1 addition & 0 deletions emmy_debugger/src/util.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "emmy_debugger/util.h"
#include <cstring>
#include <algorithm>

// glibc 函数
int __strncasecmp(const char *s1, const char *s2, int n) {
Expand Down

0 comments on commit dbc6b57

Please sign in to comment.