1
0
Fork 0
mirror of https://gitlab.com/niansa/llama_nds.git synced 2025-03-06 20:53:28 +01:00

Fixed Windows compatibility

This commit is contained in:
Nils Sauer 2023-04-05 16:03:15 +02:00
parent 4d18248a78
commit 250ec5d1a4
2 changed files with 5 additions and 1 deletions

View file

@ -23,7 +23,7 @@ std::string Receiver::Simple::read(size_t amount) {
return fres; return fres;
} }
void Receiver::Simple::read(std::byte *buffer, size_t size) { 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) { std::string Receiver::Simple::readSome(size_t max) {

View file

@ -216,6 +216,10 @@ public:
std::getline(std::cin, content); std::getline(std::cin, content);
return content.c_str(); return content.c_str();
} }
static void clearScreen() {
system("cls");
}
}; };
#endif #endif
#endif #endif