Fixed some windows issues
This commit is contained in:
@ -3,6 +3,10 @@
|
||||
#include <istream>
|
||||
#include <streambuf>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
|
||||
namespace fsh::util
|
||||
{
|
||||
@ -16,7 +20,7 @@ namespace fsh::util
|
||||
*/
|
||||
void prepTerminal();
|
||||
|
||||
#if defined(__unix__) || defined(__APPLE__)
|
||||
#ifndef _WIN32
|
||||
|
||||
class CursorIStreamBuffer : public std::streambuf {
|
||||
public:
|
||||
@ -52,9 +56,12 @@ public:
|
||||
private:
|
||||
CursorIStreamBuffer buffer;
|
||||
};
|
||||
|
||||
extern CursorIStream cin;
|
||||
|
||||
#else
|
||||
|
||||
extern std::istream& cin;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user