mirror of
https://gitlab.com/niansa/llama_any.git
synced 2025-03-06 20:48:27 +01:00
Fixed Windows compatibility
This commit is contained in:
parent
4d18248a78
commit
250ec5d1a4
2 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,7 @@ std::string Receiver::Simple::read(size_t amount) {
|
|||
return fres;
|
||||
}
|
||||
void Receiver::Simple::read(std::byte *buffer, size_t size) {
|
||||
recv(fd, buffer, size, MSG_WAITALL);
|
||||
recv(fd, reinterpret_cast<char*>(buffer), size, MSG_WAITALL);
|
||||
}
|
||||
|
||||
std::string Receiver::Simple::readSome(size_t max) {
|
||||
|
|
|
@ -216,6 +216,10 @@ public:
|
|||
std::getline(std::cin, content);
|
||||
return content.c_str();
|
||||
}
|
||||
|
||||
static void clearScreen() {
|
||||
system("cls");
|
||||
}
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue