Browse Source

Another fix to MSYS2 test failure

merge-requests/404/merge
eidheim 5 years ago
parent
commit
5164f3f956
  1. 10
      tests/language_protocol_server_test.cpp

10
tests/language_protocol_server_test.cpp

@ -1,7 +1,17 @@
#include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/json_parser.hpp>
#include <iostream> #include <iostream>
#ifdef _WIN32
#include <fcntl.h>
#include <io.h>
#endif
int main() { int main() {
#ifdef _WIN32
_setmode(_fileno(stdout), _O_BINARY);
#endif
std::string line; std::string line;
try { try {
// Read initialize and respond // Read initialize and respond

Loading…
Cancel
Save